libthread-db: fix libthread_db.so installation.
authorFlorian Fainelli <florian@openwrt.org>
Wed, 21 Nov 2012 20:26:55 +0000 (20:26 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 21 Nov 2012 20:26:55 +0000 (20:26 +0000)
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

package/toolchain/Makefile

index c194a34d034845d9dec6ee42b77312229cf92729..265587ed5f96c13f28fac20a8e1be1c757c96aae 100644 (file)
@@ -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