From: Felix Fietkau Date: Tue, 8 Mar 2011 12:48:36 +0000 (+0000) Subject: base-files: the relinked libpthread needs to be linked against libdl, otherwise calls... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=357018e7e53b8374738d16200473382813bbc6af;p=openwrt%2Fstaging%2Fblocktrron.git base-files: the relinked libpthread needs to be linked against libdl, otherwise calls to dlopen() fail (fixes #8978) SVN-Revision: 25950 --- diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 61296b05ef..07cc8b460a 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -357,7 +357,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \ "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \ -Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal \ - $(BUILD_LIBGCC) \ + -ldl $(BUILD_LIBGCC) \ -Wl,-soname=libpthread.so.0 endef ifneq ($(BUILD_LIBGCC),)