uclibc++: link libssp_nonshared only for musl
authorSteven Barth <cyrus@openwrt.org>
Mon, 6 Jul 2015 08:55:28 +0000 (08:55 +0000)
committerSteven Barth <cyrus@openwrt.org>
Mon, 6 Jul 2015 08:55:28 +0000 (08:55 +0000)
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 46192

package/libs/uclibc++/Makefile

index bad6d6d353d6823be6741ceb6e01cb93a42f741d..3aa94f8350030962a0735fb35da2b6277f43c24d 100644 (file)
@@ -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