summaryrefslogtreecommitdiff
path: root/toolchain/gcc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-09-26 08:08:49 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-09-26 08:08:49 +0200
commit99977299a1884a1248106006f4ab6d54fc463aaf (patch)
tree59c96ad9406633ea98a9b91f6d3a5724ab9ac1f2 /toolchain/gcc
parent64492618fc5de19d405a60cc9742b45cf4243f38 (diff)
parentbbf151ff5613c562fe1e044902fbbb93194c7450 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
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))