aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2011-01-27 16:09:23 -0800
committerElliott Hughes <enh@google.com>2011-01-27 16:09:23 -0800
commit6a0e513d7d40e34caeb85fe55d21609946448915 (patch)
tree40d0e21286e13bba24b846e37b5fe2cc2d56e393
parent26ea4299bba7c618fdf97624b39e33444410896d (diff)
downloadfdlibm-6a0e513d7d40e34caeb85fe55d21609946448915.tar.gz
Fix x86 build (problems spotted by StrictMath tests).
Bug: 2931959 Change-Id: I6e080922e20452b60957242e618f3ad84e1fb038
-rw-r--r--Android.mk6
-rw-r--r--CleanSpec.mk2
2 files changed, 8 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index eccdb70..4b1f502 100644
--- a/Android.mk
+++ b/Android.mk
@@ -45,6 +45,12 @@ src_files := \
# are used.
cflags := "-D_LIB_VERSION_TYPE=\"const enum _IEEE_\""
+# Disable GCC optimizations that interact badly with this crufty
+# library (see their own admission in 'readme'). Without this, we
+# fail StrictMath tests on x86.
+cflags += "-fno-strict-aliasing"
+cflags += "-ffloat-store"
+
#
# Build for the target (device).
diff --git a/CleanSpec.mk b/CleanSpec.mk
index b84e1b6..0d2142a 100644
--- a/CleanSpec.mk
+++ b/CleanSpec.mk
@@ -47,3 +47,5 @@
# ************************************************
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
# ************************************************
+$(call add-clean-step, rm -rf $(OUT_DIR)/host/linux-x86/obj/STATIC_LIBRARIES/libfdlibm-host_intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libfdlibm_intermediates)