diff options
author | Nils Wallménius <nils@rockbox.org> | 2011-06-02 16:11:22 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2011-06-02 16:11:22 +0000 |
commit | d860c878003142128f7beb3e38dae38007822364 (patch) | |
tree | a0f746d34a3fa97f422244126dd0072a619fb7da | |
parent | 927361b4aec03b3ec002d37a717670058a630686 (diff) | |
download | rockbox-d860c878003142128f7beb3e38dae38007822364.tar.gz 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
-rw-r--r-- | apps/codecs/libspeex/libspeex.make | 9 |
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 @@ | |||
13 | 13 | ||
14 | # disable strict aliasing optimizations for now, it gives warnings due to | 14 | # disable strict aliasing optimizations for now, it gives warnings due to |
15 | # some horrid typecasting | 15 | # some horrid typecasting |
16 | SPEEXFLAGS = $(filter-out -O%, $(filter-out -fstrict-aliasing, $(CODECFLAGS))) \ | 16 | _SPEEXFLAGS = $(filter-out -fstrict-aliasing, $(CODECFLAGS)) \ |
17 | -fno-strict-aliasing -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \ | 17 | -fno-strict-aliasing -DHAVE_CONFIG_H -DSPEEX_DISABLE_ENCODER \ |
18 | -I$(APPSDIR)/codecs/libspeex | 18 | -I$(APPSDIR)/codecs/libspeex |
19 | 19 | ||
20 | # build voice codec with core -O switch | ||
21 | VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(_SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC | ||
22 | |||
20 | # libspeex is faster on ARM-targets with -O1 instead of -O2 | 23 | # libspeex is faster on ARM-targets with -O1 instead of -O2 |
24 | SPEEXFLAGS = $(filter-out -O%,$(_SPEEXFLAGS)) | ||
25 | |||
21 | ifeq ($(CPU),arm) | 26 | ifeq ($(CPU),arm) |
22 | SPEEXFLAGS += -O1 | 27 | SPEEXFLAGS += -O1 |
23 | else | 28 | else |
24 | SPEEXFLAGS += -O2 | 29 | SPEEXFLAGS += -O2 |
25 | endif | 30 | endif |
26 | 31 | ||
27 | VOICESPEEXFLAGS = $(filter-out -ffunction-sections, $(filter-out -DCODEC,$(SPEEXFLAGS))) -DROCKBOX_VOICE_CODEC | ||
28 | |||
29 | # libspeex | 32 | # libspeex |
30 | SPEEXLIB := $(CODECDIR)/libspeex.a | 33 | SPEEXLIB := $(CODECDIR)/libspeex.a |
31 | SPEEXLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libspeex/SOURCES) | 34 | SPEEXLIB_SRC := $(call preprocess, $(APPSDIR)/codecs/libspeex/SOURCES) |