Skip to contentSkip to conversation

external toolchain: also copy the libthread_db.so for gdbserver

Buildroot Peter Korsgaard 1 participant 1 message May 28, 2010

lore
Share & tools
lore
#0 lore raw

commit: http://git.buildroot.net/buildroot/commit/?id=1f39e6e2063b9314b7224161d366cc44d5819e9a
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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 |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
toolchain/external-toolchain/ext-tool.mk +3 -0
index e858edb..8daae15 100644
@@ -264,6 +264,9 @@ endif
 
 ifneq ($(BR2_PTHREADS_NONE),y)
 EXTERNAL_LIBS+=libpthread.so
+ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
+EXTERNAL_LIBS+=libthread_db.so
+endif # gdbserver
 endif # ! no threads
 
 # SYSROOT_DIR selection. We first try the -print-sysroot option,
Signature · 1 line
1.6.3.3