summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-09-16 22:38:34 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-09-16 22:38:34 +0200
commit5068c3a4a21f79b3f11f27e9c48680021954aa7b (patch)
treeee041d74c3c95d4d16401e92d857b0d9643535af
parent2f24b14c5a6b23c634baf4bc64cee133dfaf10fe (diff)
fix coldfire toolchain build
-rw-r--r--toolchain/gcc/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index a2f73ff5b..129ce77d6 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -10,6 +10,14 @@ ifeq ($(ADK_TARGET_LIB_MUSL),y)
TARGET_CXXFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CXXFLAGS))
endif
+# for multilib m68k uClinux, we need to filter out some flags
+ifeq ($(ADK_TARGET_UCLINUX),y)
+TARGET_CFLAGS:= $(filter-out -mcpu=5208,$(TARGET_CFLAGS))
+TARGET_CFLAGS:= $(filter-out -msep-data,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(filter-out -mcpu=5208,$(TARGET_CXXFLAGS))
+TARGET_CXXFLAGS:= $(filter-out -msep-data,$(TARGET_CXXFLAGS))
+endif
+
GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--with-bugurl="http://www.openadk.org/" \
--build=$(GNU_HOST_NAME) \