Explorar o código

uclibc++: only disable SSP for ppc

Signed-off-by: Steven Barth <[email protected]>

SVN-Revision: 46067
Steven Barth %!s(int64=10) %!d(string=hai) anos
pai
achega
8a9fd81e55
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      package/libs/uclibc++/Makefile

+ 5 - 1
package/libs/uclibc++/Makefile

@@ -44,7 +44,11 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
 	-e 's/mipsel.*/mips/' \
 )
 
-TARGET_CFLAGS += $(FPIC) -fno-stack-protector
+ifeq ($(ARCH),powerpc)
+TARGET_CFLAGS += -fno-stack-protector
+endif
+
+TARGET_CFLAGS += $(FPIC)
 
 ifneq ($(CONFIG_CCACHE),)
 TARGET_CXX=$(TARGET_CXX_NOCACHE)