From: twinaphex Date: Tue, 10 Dec 2013 21:25:38 +0000 (+0100) Subject: (Clang) Linker fix X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac9abd01bf28cc83187d7c2d5004716402d16e02;p=picodrive.git (Clang) Linker fix --- diff --git a/Makefile b/Makefile index c199b85..d31779c 100644 --- a/Makefile +++ b/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