summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-09-19 15:13:50 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-09-19 15:13:50 +0000
commitc7f0f973aba1581777d667ca746bbb5394eef818 (patch)
treeafabc69b364cc216d5753b5a6f0b4444b4c4d732 /package
parentb336c9904c07c52cd770c1898dada0407854c586 (diff)
downloadmtk-20170518-c7f0f973aba1581777d667ca746bbb5394eef818.zip
mtk-20170518-c7f0f973aba1581777d667ca746bbb5394eef818.tar.gz
mtk-20170518-c7f0f973aba1581777d667ca746bbb5394eef818.tar.bz2
gdb: gdbserver package dependency fix (#11179)
In the current trunk, gdbserver is not building anymore (with EGLIBC 2.15 selected) due to a missing dependency: Package gdbserver is missing dependencies for the following libraries: libthread_db.so.1 In order to fix it, the system shared lib libthread_db.so.1 is copied from the toolchain lib dir into the gdb package target structure (/usr/lib) to pass the dependency checks. This patch was (quickly) reviewed by Paul Fertser on IRC. Signed-off-by: xxiao <xxiao@fosiao.com> Signed-off-by: Matthieu Boujonnier <openwrt-devel@metaverse.fr> SVN-Revision: 33479
Diffstat (limited to 'package')
-rw-r--r--package/gdb/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/gdb/Makefile b/package/gdb/Makefile
index 879ba3d..cf0b9ea 100644
--- a/package/gdb/Makefile
+++ b/package/gdb/Makefile
@@ -77,6 +77,10 @@ endef
define Package/gdbserver/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/
+ifneq ($(CONFIG_USE_EGLIBC),)
+ $(INSTALL_DIR) $(1)/usr/lib
+ $(CP) $(TOOLCHAIN_DIR)/lib/libthread_db* $(1)/usr/lib
+endif
endef
$(eval $(call BuildPackage,gdb))