summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-11 08:44:22 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-11 08:44:35 +0200
commit9c4ae62a55ebc763ac72e4b1513f305cdc1abe55 (patch)
tree9dc1cf6b74afbe68c93bee07503163d830dd7b5d /toolchain
parentf0bd75d79c4b390ddd3fb4288065e58fb674497d (diff)
add cleansystem target, filter fstack-protector-all for musl
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile5
-rw-r--r--toolchain/musl/Makefile3
2 files changed, 8 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index e56603f06..ac0209278 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -5,6 +5,11 @@ include $(TOPDIR)/rules.mk
include ../rules.mk
include Makefile.inc
+# disable SSP for libstdc++
+ifeq ($(ADK_TARGET_LIB_MUSL),y)
+TARGET_CXXFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CXXFLAGS))
+endif
+
GCC_CONFOPTS:= --prefix=$(TOOLCHAIN_DIR)/usr \
--with-bugurl="http://www.openadk.org/" \
--build=$(GNU_HOST_NAME) \
diff --git a/toolchain/musl/Makefile b/toolchain/musl/Makefile
index 720f1a41e..1e916fee4 100644
--- a/toolchain/musl/Makefile
+++ b/toolchain/musl/Makefile
@@ -9,6 +9,9 @@ include ${TOPDIR}/mk/buildhlp.mk
ifeq ($(ADK_TARGET_CPU_ARCH),ppc)
GNU_TARGET_NAME:= $(subst ppc,powerpc,$(GNU_TARGET_NAME))
endif
+# not yet possible
+TARGET_CFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_CFLAGS))
+TARGET_LDFLAGS:= $(filter-out -fstack-protector-all,$(TARGET_LDFLAGS))
$(WRKBUILD)/.headers:
(cd $(WRKBUILD); CC='$(TARGET_CC)' CROSS_COMPILE='$(TARGET_CROSS)' \