base-files: the relinked libpthread needs to be linked against libdl, otherwise calls...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 8 Mar 2011 12:48:36 +0000 (12:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 8 Mar 2011 12:48:36 +0000 (12:48 +0000)
SVN-Revision: 25950

package/base-files/Makefile

index 61296b05ef53be926979c8ddbdc3d49b04eabba4..07cc8b460a6e2299145c16c527eff66467fedf73 100644 (file)
@@ -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),)