external toolchain: also copy the libthread_db.so for gdbserver
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.
Signed-off-by "Yann E. MORIN" <[email protected]>
--- toolchain/external-toolchain/ext-tool.mk | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
toolchain/external-toolchain/ext-tool.mk +4 -0
@@ -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