diff options
author | Marcus Oakland <marcus.oakland@arm.com> | 2013-09-18 10:10:05 +0100 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-12-19 11:22:03 -0800 |
commit | 67cc0e474599fc1a896164da3170af6e8efb5378 (patch) | |
tree | b9b7d3a1417e1acbe99cc7d3e8ada0b93d2eb0db | |
parent | 0da5f683c9ddc9442af3b389b4220e91ccffb320 (diff) | |
download | fdlibm-67cc0e474599fc1a896164da3170af6e8efb5378.tar.gz |
Android is little endian.
Change-Id: I2c00576eb8762f7a58e8d83e46a9fe03057e261e
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
-rw-r--r-- | Android.mk | 20 |
1 files changed, 3 insertions, 17 deletions
@@ -45,6 +45,9 @@ src_files := \ # are used. cflags := "-D_IEEE_LIBM" +# Android only supports little-endian. +cflags += "-D__LITTLE_ENDIAN" + # Disable GCC optimizations that interact badly with this crufty # library (see their own admission in 'readme'). Without this, we # fail StrictMath tests on x86. @@ -57,19 +60,10 @@ cflags += "-ffloat-store" # include $(CLEAR_VARS) - LOCAL_SRC_FILES:= $(src_files) LOCAL_CFLAGS := $(cflags) - -ifneq ($(filter $(TARGET_ARCH),arm x86),) - # When __LITTLE_ENDIAN is set, the source will compile for - # little endian cpus. - LOCAL_CFLAGS += "-D__LITTLE_ENDIAN" -endif - LOCAL_MODULE := libfdlibm LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk - include $(BUILD_STATIC_LIBRARY) @@ -80,18 +74,10 @@ include $(BUILD_STATIC_LIBRARY) ifeq ($(WITH_HOST_DALVIK),true) include $(CLEAR_VARS) - LOCAL_SRC_FILES:= $(src_files) LOCAL_CFLAGS := $(cflags) - - ifneq ($(filter $(HOST_ARCH),arm x86),) - # See similar section above. - LOCAL_CFLAGS += "-D__LITTLE_ENDIAN" - endif - LOCAL_MODULE := libfdlibm LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk - include $(BUILD_HOST_STATIC_LIBRARY) endif |