1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-27 11:25:09 +02:00

base-files: the relinked libpthread needs to be linked against libdl, otherwise calls to dlopen() fail (fixes #8978)

SVN-Revision: 25950
This commit is contained in:
Felix Fietkau 2011-03-08 12:48:36 +00:00
parent 4cd2bef057
commit 357018e7e5

View File

@ -357,7 +357,7 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
"$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \ "$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread_so.a)" \
"$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \ "$(patsubst $(TOOLCHAIN_DIR)/lib/%,$(PKG_BUILD_DIR)/%,$(wildcard $(TOOLCHAIN_DIR)/lib/libpthread-*.so))" \
-Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal \ -Wl,-z,nodelete,-z,initfirst,-init=__pthread_initialize_minimal_internal \
$(BUILD_LIBGCC) \ -ldl $(BUILD_LIBGCC) \
-Wl,-soname=libpthread.so.0 -Wl,-soname=libpthread.so.0
endef endef
ifneq ($(BUILD_LIBGCC),) ifneq ($(BUILD_LIBGCC),)