diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-10-21 14:18:08 +0159 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-10-21 14:18:08 +0159 |
commit | 195aa750b917a5f0d47045f04bcef9eee62bd6dd (patch) | |
tree | 8d0090d948087d615be25fcb1fccc2c2a595ef0f | |
parent | 43af59b0f8be9b97e11f9725a630e11408ce2bf2 (diff) | |
download | tremolo-linaro_android_2.3.5.tar.gz |
tremolo: Fix compiler flagslinaro_android_2.3.7linaro_android_2.3.5
The purpose of the LOCAL_CFLAGS += -O2 in this file is to make
sure tremolo is built with optimizations enabled - however, if
-O3 is given in the global compiler flags, adding -O2 actually
reduces the optimization level.
Fix this by only adding -O2 if no optimization level is given
globally.
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | Android.mk | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -28,7 +28,9 @@ else LOCAL_CFLAGS += \ -DONLY_C endif +ifeq ($(findstring -O, $(TARGET_GLOBAL_CFLAGS)),) LOCAL_CFLAGS+= -O2 +endif # Workaround for gcc bug last verified in 4.6-2011.10 LOCAL_CFLAGS+=$(call cc-option,-fno-modulo-sched) |