summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2011-06-02 16:11:22 +0000
committerNils Wallménius <nils@rockbox.org>2011-06-02 16:11:22 +0000
commitd860c878003142128f7beb3e38dae38007822364 (patch)
treea0f746d34a3fa97f422244126dd0072a619fb7da /apps
parent927361b4aec03b3ec002d37a717670058a630686 (diff)
downloadrockbox-d860c878003142128f7beb3e38dae38007822364.tar.gz
rockbox-d860c878003142128f7beb3e38dae38007822364.tar.bz2
rockbox-d860c878003142128f7beb3e38dae38007822364.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/libspeex/libspeex.make9
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/codecs/libspeex/libspeex.make b/apps/codecs/libspeex/libspeex.make
index ee93e7113d..cc2c3caee1 100644
--- a/apps/codecs/libspeex/libspeex.make
+++ b/apps/codecs/libspeex/libspeex.make
@@ -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)