uclibc++: link libssp_nonshared only for musl

Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 46192
master
Steven Barth 10 years ago
parent 502011078e
commit f3cacb9e84
  1. 6
      package/libs/uclibc++/Makefile

@ -50,6 +50,10 @@ ifneq ($(CONFIG_CCACHE),)
TARGET_CXX=$(TARGET_CXX_NOCACHE) TARGET_CXX=$(TARGET_CXX_NOCACHE)
endif endif
ifeq ($(CONFIG_USE_MUSL),y)
SSP_LIB=-lssp_nonshared
endif
MAKE_FLAGS:= \ MAKE_FLAGS:= \
TOPDIR="$(PKG_BUILD_DIR)/" \ TOPDIR="$(PKG_BUILD_DIR)/" \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
@ -57,7 +61,7 @@ MAKE_FLAGS:= \
CROSS="$(TARGET_CROSS)" \ CROSS="$(TARGET_CROSS)" \
LDFLAGS="-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs $(TARGET_LDFLAGS)" \ LDFLAGS="-Wl,--warn-common -Wl,--warn-once -Wl,-z,combreloc -Wl,-z,defs $(TARGET_LDFLAGS)" \
CP="$(CP)" \ CP="$(CP)" \
GEN_LIBS="-lc $(LIBGCC_S) -lssp_nonshared" \ GEN_LIBS="-lc $(LIBGCC_S) $(SSP_LIB)" \
check_as_needed= check_as_needed=
# check_as_needed overrides dependency on libgcc_s # check_as_needed overrides dependency on libgcc_s

Loading…
Cancel
Save