Build the voice codec speex with core -O switch to save size on targets using -Os.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2011-06-02 16:11:22 +00:00
parent 927361b4ae
commit d860c87800

View file

@ -13,19 +13,22 @@
# disable strict aliasing optimizations for now, it gives warnings due to
# some horrid typecasting
SPEEXFLAGS = $(filter-out -O%, $(filter-out -fstrict-aliasing, $(CODECFLAGS))) \
_SPEEXFLAGS = $(filter-out -fstrict-aliasing, $(CODECFLAGS)) \
-fno-strict-aliasing -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \
-I$(APPSDIR)/codecs/libspeex
# build voice codec with core -O switch
VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(_SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC
# libspeex is faster on ARM-targets with -O1 instead of -O2
SPEEXFLAGS = $(filter-out -O%,$(_SPEEXFLAGS))
ifeq ($(CPU),arm)
SPEEXFLAGS += -O1
else
SPEEXFLAGS += -O2
endif
VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC
# libspeex
SPEEXLIB := $(CODECDIR)/libspeex.a
SPEEXLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libspeex/SOURCES)