build: drop function-sections

this has provoked people to do some horrible ifdeffery in libretro fork,
while the benefit is minimal, if any.
This commit is contained in:
notaz 2017-10-13 00:40:30 +03:00
parent 0bc8955485
commit 84162df45c

View file

@ -2,10 +2,7 @@ TARGET ?= PicoDrive
CFLAGS += -Wall -ggdb -falign-functions=2 CFLAGS += -Wall -ggdb -falign-functions=2
CFLAGS += -I. CFLAGS += -I.
ifndef DEBUG ifndef DEBUG
CFLAGS += -O3 -DNDEBUG -ffunction-sections CFLAGS += -O3 -DNDEBUG
ifeq ($(findstring clang,$(CC)),)
LDFLAGS += -Wl,--gc-sections
endif
endif endif
#CFLAGS += -DEVT_LOG #CFLAGS += -DEVT_LOG
#CFLAGS += -DDRC_CMP #CFLAGS += -DDRC_CMP