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:
parent
4c933a1d01
commit
6c2a7ddc74
5 changed files with 14 additions and 39 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue