X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=8e2feee1170ab30f660f918b9d1476414bc041bb;hb=0bc48495d3d3e00928d89ab35f95506262d60f92;hp=c199b85367da83c67cc03f0c0bc9605bcac7a2a7;hpb=948aa481fa136185771fc85b4b8abaffe3795aef;p=picodrive.git diff --git a/Makefile b/Makefile index c199b85..8e2feee 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 @@ -195,6 +197,10 @@ pico/cd/pcm.o: CFLAGS += -fno-strict-aliasing pico/cd/LC89510.o: CFLAGS += -fno-strict-aliasing pico/cd/gfx_cd.o: CFLAGS += -fno-strict-aliasing +# fame needs ~2GB of RAM to compile on gcc 4.8 +# on x86, this is reduced by ~300MB when debug info is off (but not on ARM) +cpu/fame/famec.o: CFLAGS += -g0 + # random deps pico/carthw/svp/compiler.o : cpu/drc/emit_$(ARCH).c cpu/sh2/compiler.o : cpu/drc/emit_$(ARCH).c