Skip to contentSkip to conversation

external toolchain: also copy the libthread_db.so for gdbserver

PATCH New Yann E. MORIN 1 participant 1 message May 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 external toolchain: also copy the libthread_db.so for gdbserver

From: Yann E. MORIN <[email protected]>

gdbserver dlopen(3)s libthread_db.so at runtime, so there is no dependency on it (does not appear as being (NEEDED)).

Copy libthread_db.so from external toolchain when gdbserver is enbled.

---
 toolchain/external-toolchain/ext-tool.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
toolchain/external-toolchain/ext-tool.mk +4 -0
index bb4809c..ae9dfad 100644
@@ -262,6 +262,10 @@ ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
 EXTERNAL_LIBS+=libstdc++.so
 endif
 
+ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
+EXTERNAL_LIBS+=libthread_db.so
+endif
+
 # SYSROOT_DIR selection. We first try the -print-sysroot option,
 # available in gcc 4.4.x and in some Codesourcery toolchains. If this
 # option is not available, we fallback to the value of --with-sysroot