From 9c4ae62a55ebc763ac72e4b1513f305cdc1abe55 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 11 Jun 2014 08:44:22 +0200 Subject: add cleansystem target, filter fstack-protector-all for musl --- toolchain/gcc/Makefile | 5 +++++ toolchain/musl/Makefile | 3 +++ 2 files changed, 8 insertions(+) (limited to 'toolchain') 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)' \ -- cgit v1.2.3