aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Barth <cyrus@openwrt.org>2015-07-06 08:55:28 +0000
committerSteven Barth <cyrus@openwrt.org>2015-07-06 08:55:28 +0000
commitf3cacb9e84982a17021ed09905149db0faefbe81 (patch)
tree88cfbc40532fe99896fb290e1fac30ee9c9a35c7
parent502011078e0979a305abdcc92991fb72b3d0bcd0 (diff)
downloadupstream-f3cacb9e84982a17021ed09905149db0faefbe81.tar.gz
upstream-f3cacb9e84982a17021ed09905149db0faefbe81.tar.bz2
upstream-f3cacb9e84982a17021ed09905149db0faefbe81.zip
uclibc++: link libssp_nonshared only for musl
Signed-off-by: Steven Barth <steven@midlink.org> SVN-Revision: 46192
-rw-r--r--package/libs/uclibc++/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/libs/uclibc++/Makefile b/package/libs/uclibc++/Makefile
index bad6d6d353..3aa94f8350 100644
--- a/package/libs/uclibc++/Makefile
+++ b/package/libs/uclibc++/Makefile
@@ -50,6 +50,10 @@ ifneq ($(CONFIG_CCACHE),)
TARGET_CXX=$(TARGET_CXX_NOCACHE)
endif
+ifeq ($(CONFIG_USE_MUSL),y)
+SSP_LIB=-lssp_nonshared
+endif
+
MAKE_FLAGS:= \
TOPDIR="$(PKG_BUILD_DIR)/" \
$(TARGET_CONFIGURE_OPTS) \
@@ -57,7 +61,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_nonshared" \
+ GEN_LIBS="-lc $(LIBGCC_S) $(SSP_LIB)" \
check_as_needed=
# check_as_needed overrides dependency on libgcc_s