diff options
author | Steven Barth <steven@midlink.org> | 2015-07-06 08:55:28 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-06 08:55:28 +0000 |
commit | 33c550257c6f8c8d2482d63baa3503faa47f6a62 (patch) | |
tree | 69fabb43a1c55445ae7bcd7140c7059f8271a10e /package/libs/uclibc++ | |
parent | 85f39decff2dd5b82f27b4dc7b6a390f3b4c5325 (diff) | |
download | master-187ad058-33c550257c6f8c8d2482d63baa3503faa47f6a62.tar.gz master-187ad058-33c550257c6f8c8d2482d63baa3503faa47f6a62.tar.bz2 master-187ad058-33c550257c6f8c8d2482d63baa3503faa47f6a62.zip |
uclibc++: link libssp_nonshared only for musl
Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46192 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs/uclibc++')
-rw-r--r-- | package/libs/uclibc++/Makefile | 6 |
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 |