diff options
author | Mathieu J. Poirier <mathieu.poirier@linaro.org> | 2012-03-21 16:24:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@betelgeuse.canonical.com> | 2012-03-21 16:24:10 +0000 |
commit | fccd4888194b7c7be0dea41eb10a92636175045d (patch) | |
tree | 10069af9636e794526bb290f1d355f41f17c1750 | |
parent | f5cb4a6b8b7630257afddd0c6b18111aa8ac29a7 (diff) | |
parent | bb3b30cd6bc06a23f1430580b9882dc01521e2c9 (diff) | |
download | build-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.mk | 14 |
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 |