uclibc++: link against libssp_nonshared instead of libssp
authorSteven Barth <cyrus@openwrt.org>
Sat, 20 Jun 2015 18:36:52 +0000 (18:36 +0000)
committerSteven Barth <cyrus@openwrt.org>
Sat, 20 Jun 2015 18:36:52 +0000 (18:36 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46076

package/libs/uclibc++/Makefile

index 8374db5322c0c572a7174359ab5c3b64e7261f39..3e9fd73c26f259a82b90f888489b5c365760a667 100644 (file)
@@ -44,10 +44,6 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
        -e 's/mipsel.*/mips/' \
 )
 
-ifeq ($(ARCH),powerpc)
-TARGET_CFLAGS += -fno-stack-protector
-endif
-
 TARGET_CFLAGS += $(FPIC)
 
 ifneq ($(CONFIG_CCACHE),)
@@ -61,7 +57,7 @@ MAKE_FLAGS:= \
        CROSS="$(TARGET_CROSS)" \
        LDFLAGS="-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs $(TARGET_LDFLAGS)" \
        CP="$(CP)" \
-       GEN_LIBS="-lc $(LIBGCC_S) -lssp" \
+       GEN_LIBS="-lc $(LIBGCC_S) -lssp_nonshared" \
        check_as_needed=
 
 # check_as_needed overrides dependency on libgcc_s