diff options
author | Elliott Hughes <enh@google.com> | 2011-01-27 16:09:23 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-01-27 16:09:23 -0800 |
commit | 6a0e513d7d40e34caeb85fe55d21609946448915 (patch) | |
tree | 40d0e21286e13bba24b846e37b5fe2cc2d56e393 | |
parent | 26ea4299bba7c618fdf97624b39e33444410896d (diff) | |
download | fdlibm-6a0e513d7d40e34caeb85fe55d21609946448915.tar.gz |
Fix x86 build (problems spotted by StrictMath tests).
Bug: 2931959
Change-Id: I6e080922e20452b60957242e618f3ad84e1fb038
-rw-r--r-- | Android.mk | 6 | ||||
-rw-r--r-- | CleanSpec.mk | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -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) |