summaryrefslogtreecommitdiff
path: root/toolchain/glibc/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2022-02-09 11:48:04 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2022-02-09 11:49:05 +0100
commit5929ac741467993411e4901cb3abe0517e12536b (patch)
tree89726270866029b6323e5548189da4d393ca4ff3 /toolchain/glibc/Makefile
parent3b8dd9d35a6f814142c829b096d0df06150672f7 (diff)
glibc: x86/x86_64/m68k can be compiled with -Os
Diffstat (limited to 'toolchain/glibc/Makefile')
-rw-r--r--toolchain/glibc/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index ddc9d9f0a..7c35e372b 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -6,12 +6,7 @@ include ../rules.mk
include Makefile.inc
include ${ADK_TOPDIR}/mk/buildhlp.mk
-# glibc does not compile with Os and CPU specific FLAGS for m68k/x86_64/x86
-ifeq ($(ADK_TARGET_ARCH_X86)$(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_ARCH_M68K),y)
-TARGET_CFLAGS:= -O2
-TARGET_CXXFLAGS:= -O2
-endif
-
+# glibc does not compile with NEON suggested CFLAGS/CXXFLAGS
TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -ffast-math,$(TARGET_CXXFLAGS))