aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2011-05-13 15:25:03 -0700
committerElliott Hughes <enh@google.com>2013-03-05 13:19:34 -0800
commit436880f7beaab2b68836b20518381fac322379ee (patch)
tree091526ba1106c0f69aef481dc40704a9693b13e2
parent24856709256f5243a6c29446577052f15fb1ab3b (diff)
downloadfdlibm-436880f7beaab2b68836b20518381fac322379ee.tar.gz
[MIPS] Build fdlibm in forced IEEE mode
Overriding _LIB_VERSION_TYPE on the command line just doesn't work so fdlibm ended up being built with multimode support. This patch fixes that and adds dependencies on the makefile so everything gets rebuilt. Change-Id: I0623a9c70d374974377112f0c71d4e163d92cf59 Signed-off-by: Chris Dearman <chris@mips.com>
-rw-r--r--Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.mk b/Android.mk
index ef64cfc..9e84bc3 100644
--- a/Android.mk
+++ b/Android.mk
@@ -43,7 +43,7 @@ src_files := \
# This is necessary to guarantee that the FDLIBM functions are in
# "IEEE spirit", i.e. to guarantee that the IEEE 754 core functions
# are used.
-cflags := "-D_LIB_VERSION_TYPE=\"const enum _IEEE_\""
+cflags := "-D_IEEE_LIBM"
# Disable GCC optimizations that interact badly with this crufty
# library (see their own admission in 'readme'). Without this, we
@@ -68,6 +68,7 @@ ifneq ($(filter $(TARGET_ARCH),arm x86),)
endif
LOCAL_MODULE := libfdlibm
+LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
include $(BUILD_STATIC_LIBRARY)
@@ -89,6 +90,7 @@ ifeq ($(WITH_HOST_DALVIK),true)
endif
LOCAL_MODULE := libfdlibm
+ LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
include $(BUILD_HOST_STATIC_LIBRARY)