diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-02-16 22:15:39 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-02-16 22:15:39 +0100 |
commit | 77f9d57de4989f5012b1651df6512c4828144d93 (patch) | |
tree | b6d0410896bdb3ec19f13c7ecff5747dcfb6edec /toolchain/musl | |
parent | 3f8f308a7f967deedea6771723346ba0cb3002d0 (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/musl')
-rw-r--r-- | toolchain/musl/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile index 8390b13a7..0c628806a 100644 --- a/toolchain/musl/Makefile +++ b/toolchain/musl/Makefile @@ -12,6 +12,8 @@ endif # not yet possible 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)) $(WRKBUILD)/.configured: (cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \ |