summaryrefslogtreecommitdiff
path: root/toolchain/gcc/Makefile
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/gcc/Makefile
parentf0bd75d79c4b390ddd3fb4288065e58fb674497d (diff)
add cleansystem target, filter fstack-protector-all for musl
Diffstat (limited to 'toolchain/gcc/Makefile')
-rw-r--r--toolchain/gcc/Makefile5
1 files changed, 5 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) \