(Clang) Linker fix

This commit is contained in:
twinaphex 2013-12-10 22:25:38 +01:00 committed by notaz
parent 1c67828540
commit f9020f359c

View file

@ -3,8 +3,10 @@ CFLAGS += -Wall -ggdb -falign-functions=2
CFLAGS += -I.
ifndef DEBUG
CFLAGS += -O2 -DNDEBUG -ffunction-sections
ifeq ($(findstring clang,$(CC)),)
LDFLAGS += -Wl,--gc-sections
endif
endif
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP
#cpu_cmp = 1