summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/toolchain/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/package/toolchain/Makefile b/package/toolchain/Makefile
index c194a34d03..265587ed5f 100644
--- a/package/toolchain/Makefile
+++ b/package/toolchain/Makefile
@@ -453,9 +453,12 @@ ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
define Package/libthread-db/install
$(INSTALL_DIR) $(1)/lib
$(CP) \
- $(TOOLCHAIN_DIR)/lib/libthread_db.so.* \
+ $(TOOLCHAIN_DIR)/lib/libthread_db.so.* $(1)/lib
+ ifeq ($(USE_UCLIBC),y)
+ $(CP) \
$(TOOLCHAIN_DIR)/lib/libthread_db-$(LIBC_SO_VERSION).so \
$(1)/lib/
+ endif
endef
define Package/libpthread/install_lib