Don't include dead code when linking program (saves 48kB)

This commit is contained in:
Paul Cercueil 2013-09-30 09:29:24 -03:00 committed by notaz
parent 868cc0cc8f
commit 948aa481fa

View file

@ -2,7 +2,8 @@ TARGET ?= PicoDrive
CFLAGS += -Wall -ggdb -falign-functions=2
CFLAGS += -I.
ifndef DEBUG
CFLAGS += -O2 -DNDEBUG
CFLAGS += -O2 -DNDEBUG -ffunction-sections
LDFLAGS += -Wl,--gc-sections
endif
#CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP