aboutsummaryrefslogtreecommitdiffstats
path: root/package/toolchain/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-11-21 20:26:55 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-11-21 20:26:55 +0000
commit4e733cfbc952f7fe4ddaad531d03a6bbd5e0d18a (patch)
treeebb80e04f907b50dd775673bc4abe8b6a76672d5 /package/toolchain/Makefile
parente5effc8c4c7fcdf1021b64ad13f979d96e247ff4 (diff)
downloadupstream-4e733cfbc952f7fe4ddaad531d03a6bbd5e0d18a.tar.gz
upstream-4e733cfbc952f7fe4ddaad531d03a6bbd5e0d18a.tar.bz2
upstream-4e733cfbc952f7fe4ddaad531d03a6bbd5e0d18a.zip
libthread-db: fix libthread_db.so installation.
libthread_db.so.$(LIBC_SO_VERSION) is only valid for uClibc, (e)glibc just provides libthread_db.so.1. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34292
Diffstat (limited to 'package/toolchain/Makefile')
-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