diff options
author | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-10-21 15:50:29 +0159 |
---|---|---|
committer | Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> | 2011-10-21 15:50:29 +0159 |
commit | b4aaeb65af0a5f469131eb9ac77659624d1525da (patch) | |
tree | 1f9fd51ea89c0afaf3c03ad28403d6ffd7449f06 | |
parent | 33fbe12da508747e5a78c88e2256094f90a63205 (diff) | |
download | fdlibm-linaro_android_2.3.7.tar.gz |
fdlibm: Add workaround for building with older host compilerslinaro_android_2.3.7linaro_android_2.3.5
Compiling fdlibm with old versions of gcc results in a compile
error because of legitimate code misdetected as an aliasing
violation.
As a workaround, we build the host version of fdlibm with
-fno-strict-aliasing, given we don't officially release host
compilers.
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
-rw-r--r-- | Android.mk | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -75,7 +75,13 @@ ifeq ($(WITH_HOST_DALVIK),true) include $(CLEAR_VARS) LOCAL_SRC_FILES:= $(src_files) - LOCAL_CFLAGS := $(cflags) + # -fno-strict-aliasing is needed on older gcc versions, because + # they misdetect legitimate code as an aliasing violation. + # Since performance of host binaries isn't that vital and we + # don't officially release a host toolchain, adding + # -fno-strict-aliasing for the host build only is a reasonable + # workaround for the build failure w/ older host gccs. + LOCAL_CFLAGS := $(cflags) -fno-strict-aliasing ifneq ($(filter $(HOST_ARCH),arm x86),) # See similar section above. |