X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=Makefile;h=41ae2e6c112d171f183ab5d4673300f5129c6422;hp=c72b237ffa3078951bce17351789c44070048e96;hb=ef528d6710d597bad5462f4fbf1c5a6a54cb2a10;hpb=18fad16a7d5bc7e981e2824c7a5ade68ce9a2064 diff --git a/Makefile b/Makefile index c72b237..41ae2e6 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ CYGWIN = $(findstring CYGWIN, $(UNAME)) MINGW = $(findstring MINGW32, $(UNAME)) CC ?= clang -CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char $(OPTIONAL) +CFLAGS += -Wall -Wextra -Werror -I. -fno-strict-aliasing -fsigned-char -ffunction-sections -fdata-sections -Wl,-gc-sections $(OPTIONAL) ifneq ($(shell git describe --always 2>/dev/null),) CFLAGS += -DGMQCC_GITINFO="\"$(shell git describe --always)\"" endif