aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@linaro.org>2012-03-21 16:24:10 +0000
committerGerrit Code Review <gerrit@betelgeuse.canonical.com>2012-03-21 16:24:10 +0000
commitfccd4888194b7c7be0dea41eb10a92636175045d (patch)
tree10069af9636e794526bb290f1d355f41f17c1750
parentf5cb4a6b8b7630257afddd0c6b18111aa8ac29a7 (diff)
parentbb3b30cd6bc06a23f1430580b9882dc01521e2c9 (diff)
downloadbuild-linaro_android_4.0.3.tar.gz
Merge "snowball: disabling -03 optimzation until we have new mali libs" into linaro_android_4.0.3linaro_android_4.0.3
-rw-r--r--core/combo/TARGET_linux-arm.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index 90719b98c6..8d375c2233 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -66,21 +66,35 @@ endif
TARGET_NO_UNDEFINED_LDFLAGS := -Wl,--no-undefined
+ifneq ($(TARGET_PRODUCT),snowball)
TARGET_arm_CFLAGS := -O3 \
-fomit-frame-pointer \
-fstrict-aliasing \
-funswitch-loops
+else
+TARGET_arm_CFLAGS := -O2 \
+ -fomit-frame-pointer \
+ -fstrict-aliasing \
+ -funswitch-loops
+endif
# Modules can choose to compile some source as thumb. As
# non-thumb enabled targets are supported, this is treated
# as a 'hint'. If thumb is not enabled, these files are just
# compiled as ARM.
ifeq ($(ARCH_ARM_HAVE_THUMB_SUPPORT),true)
+ifneq ($(TARGET_PRODUCT),snowball)
TARGET_thumb_CFLAGS := -mthumb \
-O3 \
-fomit-frame-pointer \
-fno-strict-aliasing
else
+TARGET_thumb_CFLAGS := -mthumb \
+ -Os \
+ -fomit-frame-pointer \
+ -fno-strict-aliasing
+endif
+else
TARGET_thumb_CFLAGS := $(TARGET_arm_CFLAGS)
endif