]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - Makefile
Fixes
[xonotic/gmqcc.git] / Makefile
index b3d1bc31461e2cbe7249a7a3cc01c1f0ecbd2415..20152c5bf3f6cfa361066c45a33cf097d3917a73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,7 @@ else
        #Tiny C Compiler doesn't know what -pedantic-errors is
        # and instead of ignoring .. just errors.
        ifneq ($(CC), tcc)
-               CFLAGS +=-pedantic-errors
+               CFLAGS +=-pedantic-errors -ffunction-sections -fdata-sections -Wl,-gc-sections
        else
                CFLAGS += -Wno-pointer-sign -fno-common
        endif
@@ -160,6 +160,7 @@ SPLINTFLAGS =            \
     -realcompare         \
     -observertrans       \
     -shiftnegative       \
+    -freshtrans          \
     -abstract            \
     -statictrans         \
     -castfcnptr