Always build libm with clang.

Change-Id: I00df3b83dfa76a7e12f097fb622ceaec3e2bb5a4
This commit is contained in:
Elliott Hughes 2015-06-10 22:55:09 -07:00
parent b90e9b7183
commit 173ad0a53e

View File

@ -3,11 +3,6 @@ LOCAL_PATH:= $(call my-dir)
bionic_coverage := false
ifneq (,$(filter $(TARGET_ARCH),x86 x86_64))
# Clang has wrong long double sizes for x86.
libm_clang := false
endif
# -----------------------------------------------------------------------------
# libm.a
# -----------------------------------------------------------------------------
@ -478,7 +473,7 @@ LOCAL_C_INCLUDES_x86 += $(LOCAL_PATH)/i387
LOCAL_C_INCLUDES += $(LOCAL_PATH)/upstream-freebsd/lib/msun/src/
LOCAL_C_INCLUDES_64 += $(LOCAL_PATH)/upstream-freebsd/lib/msun/ld128/
LOCAL_CLANG := $(libm_clang)
LOCAL_CLANG := true
LOCAL_ARM_MODE := arm
LOCAL_CFLAGS := \
-DFLT_EVAL_METHOD=0 \
@ -515,7 +510,7 @@ LOCAL_LDFLAGS_arm := -Wl,--hash-style=both
LOCAL_LDFLAGS_x86 := -Wl,--hash-style=both
LOCAL_MODULE := libm
LOCAL_CLANG := $(libm_clang)
LOCAL_CLANG := true
LOCAL_SYSTEM_SHARED_LIBRARIES := libc
LOCAL_WHOLE_STATIC_LIBRARIES := libm