Browse Source

(Clang) Linker fix

twinaphex 10 years ago
parent
commit
f9020f359c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Makefile

+ 2 - 0
Makefile

@@ -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