summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2018-01-02 20:31:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2018-01-02 20:31:28 +0100
commitea4cdfb23149667c353f3dce278e02ca4dbb926d (patch)
treeb2e14b6bc614d4291ba6c642d6a36765b5bb1c04
parent4016ce8dca52069070cea80667f1db4566ad921a (diff)
glibc: fix builds for m68k/x86_64
-rw-r--r--toolchain/glibc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index cad36112a..3b3220b73 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -6,6 +6,12 @@ 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
+ifeq ($(ADK_TARGET_ARCH_X86_64)$(ADK_TARGET_ARCH_M68K),y)
+TARGET_CFLAGS:= -O2
+TARGET_CXXFLAGS:= -O2
+endif
+
GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--host=$(GNU_TARGET_NAME) \
--with-headers=$(STAGING_TARGET_DIR)/usr/include \