1
0
Fork 0
forked from len0rd/rockbox

build: Put all codec optiomization definitions in one place

It was already mostly there.

Change-Id: I24ff278d9bf18a54be4b67c3075d5ebbe7947f65
This commit is contained in:
Solomon Peachy 2018-12-25 14:17:29 -05:00
parent 4c933a1d01
commit 6c2a7ddc74
5 changed files with 14 additions and 39 deletions

View file

@ -16,15 +16,7 @@ $(CODECLIB): $(CODECLIB_OBJ)
$(SILENT)$(shell rm -f $@)
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
CODECLIBFLAGS = $(filter-out -O%,$(CODECFLAGS))
ifeq ($(MEMORYSIZE),2)
CODECLIBFLAGS += -Os
else ifeq ($(ARCH),arch_m68k)
CODECLIBFLAGS += -O2
else
CODECLIBFLAGS += -O1
endif
CODECLIBFLAGS = $(CODECFLAGS)
# Do not use '-ffunction-sections' when compiling sdl-sim
ifneq ($(findstring sdl-sim, $(APP_TYPE)), sdl-sim)