summaryrefslogtreecommitdiff
path: root/toolchain/uclibc-ng/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-02-16 22:15:39 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-02-16 22:15:39 +0100
commit77f9d57de4989f5012b1651df6512c4828144d93 (patch)
treeb6d0410896bdb3ec19f13c7ecff5747dcfb6edec /toolchain/uclibc-ng/Makefile
parent3f8f308a7f967deedea6771723346ba0cb3002d0 (diff)
rework ARM NEON support
Don't build C library with -ffast-math when NEON is globally enabled. Disable NEON support by default. Remove dangerous -funsafe-math-optimizations. Most suggestions from Rich Felker after analyzing libc-test failures in my setup.
Diffstat (limited to 'toolchain/uclibc-ng/Makefile')
-rw-r--r--toolchain/uclibc-ng/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/toolchain/uclibc-ng/Makefile b/toolchain/uclibc-ng/Makefile
index 5882dd7e2..981843c82 100644
--- a/toolchain/uclibc-ng/Makefile
+++ b/toolchain/uclibc-ng/Makefile
@@ -9,10 +9,12 @@ include Makefile.inc
include ${ADK_TOPDIR}/mk/buildhlp.mk
# disable LTO
-TARGET_CFLAGS:=$(filter-out -flto,$(TARGET_CFLAGS))
+TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
# handled by uClibc-ng makefiles
-TARGET_CFLAGS:=$(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
+TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
TARGET_LDFLAGS:=$(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
+# don't use fast-math for C library
+TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
ifeq ($(ADK_TARGET_HARD_FLOAT),y)
ifeq ($(ADK_TARGET_ARCH_ARM),y)