aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-22 17:44:31 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-22 17:44:31 -0500
commit04a8c524dbc4f13204b075dcb49b2f9b924a6f1c (patch)
treea8fc06327472e81ed5b97ce6417fa6b278fbdbb8 /Makefile
parent83e6cc9197bd8e7a19834d291fe4c5e62639db38 (diff)
Use static linking to produce executables.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 855c8b09..bb807187 100644
--- a/Makefile
+++ b/Makefile
@@ -85,7 +85,7 @@ TOMO_VERSION=$(shell awk 'BEGIN{hashes=sprintf("%c%c",35,35)} $$1==hashes {print
GIT_VERSION=$(shell git log -1 --pretty=format:"%as_%h" 2>/dev/null || echo "unknown")
CFLAGS += $(CCONFIG) $(INCLUDE_DIRS) $(EXTRA) $(CWARN) $(G) $(O) $(OSFLAGS) $(LTO) \
-DSUDO='"$(SUDO)"' -DDEFAULT_C_COMPILER='"$(DEFAULT_C_COMPILER)"' \
- -DGIT_VERSION='"$(GIT_VERSION)"'
+ -DGIT_VERSION='"$(GIT_VERSION)"' -ffunction-sections -fdata-sections
CFLAGS_PLACEHOLDER="$$(printf '\033[2m<flags...>\033[m\n')"
LDLIBS=-lgc -lm -lunistring -lgmp
LIBTOMO_FLAGS=-shared