X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=d31779cc21618e283492220c4733ed516d5eed7e;hb=033a505e6e897779f6ccdfaea7a2b4932521d7ef;hp=c199b85367da83c67cc03f0c0bc9605bcac7a2a7;hpb=948aa481fa136185771fc85b4b8abaffe3795aef;p=picodrive.git 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