summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-09-23 20:05:47 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-09-23 20:06:21 +0200
commitcd9515621ca932d7f0c27720cbd452494c6a9e5c (patch)
treef2a3c12c33aeeacafd2e5f8623e56b0bcc8ef0fe /toolchain/gcc
parenta99d9f4cb4388d61dc6d88dbfb553d48e7016d8b (diff)
filter out xtensa specific compiler options for gcc itself.
Diffstat (limited to 'toolchain/gcc')
-rw-r--r--toolchain/gcc/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 129ce77d6..39fc3efc9 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -7,9 +7,15 @@ include Makefile.inc
# disable SSP for libstdc++
ifeq ($(ADK_TARGET_LIB_MUSL),y)
+TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
TARGET_CXXFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CXXFLAGS))
endif
+ifeq ($(ADK_LINUX_XTENSA),y)
+TARGET_CFLAGS:= $(filter-out -mtext-section-literals,$(TARGET_CFLAGS))
+TARGET_CXXFLAGS:= $(filter-out -mtext-section-literals,$(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))