Patchwork toolchain-external: fix installation of libthread_db

login
register
mail settings
Submitter Richard Braun
Date Nov. 20, 2012, 4:17 p.m.
Message ID <1353428243-18866-1-git-send-email-rbraun@sceen.net>
Download mbox | patch
Permalink /patch/200382/
State Accepted
Commit 696365f69bdf6261e8b312f98bdc177754bd5517
Headers show

Comments

Richard Braun - Nov. 20, 2012, 4:17 p.m.
Whatever the gdbserver source, as long as it's installed on the target,
assume it requires libthread_db.

Signed-off-by: Richard Braun <rbraun@sceen.net>
---
 toolchain/toolchain-external/ext-tool.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Peter Korsgaard - Nov. 30, 2012, 9:58 p.m.
>>>>> "Richard" == Richard Braun <rbraun@sceen.net> writes:

 Richard> Whatever the gdbserver source, as long as it's installed on
 Richard> the target, assume it requires libthread_db.

Committed, thanks.

Patch

diff --git a/toolchain/toolchain-external/ext-tool.mk b/toolchain/toolchain-external/ext-tool.mk
index a6025db..8ce0a84 100644
--- a/toolchain/toolchain-external/ext-tool.mk
+++ b/toolchain/toolchain-external/ext-tool.mk
@@ -61,7 +61,7 @@  endif
 
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
 LIB_EXTERNAL_LIBS+=libpthread.so
-ifeq ($(BR2_PACKAGE_GDB_SERVER),y)
+ifneq ($(BR2_PACKAGE_GDB_SERVER)$(BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY),)
 LIB_EXTERNAL_LIBS+=libthread_db.so
 endif # gdbserver
 endif # ! no threads