Browse Source

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

SVN-Revision: 25950
Felix Fietkau 15 years ago
parent
commit
357018e7e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/base-files/Makefile

+ 1 - 1
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),)