mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
Don't include dead code when linking program (saves 48kB)
This commit is contained in:
parent
868cc0cc8f
commit
948aa481fa
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -2,7 +2,8 @@ TARGET ?= PicoDrive
|
||||||
CFLAGS += -Wall -ggdb -falign-functions=2
|
CFLAGS += -Wall -ggdb -falign-functions=2
|
||||||
CFLAGS += -I.
|
CFLAGS += -I.
|
||||||
ifndef DEBUG
|
ifndef DEBUG
|
||||||
CFLAGS += -O2 -DNDEBUG
|
CFLAGS += -O2 -DNDEBUG -ffunction-sections
|
||||||
|
LDFLAGS += -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
#CFLAGS += -DEVT_LOG
|
#CFLAGS += -DEVT_LOG
|
||||||
#CFLAGS += -DDRC_CMP
|
#CFLAGS += -DDRC_CMP
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue