* [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed
@ 2010-05-28 21:23 Yann E. MORIN
2010-05-28 21:23 ` [Buildroot] [PATCH 2/2] external toolchain: also copy the libthread_db.so for gdbserver Yann E. MORIN
2010-05-28 21:32 ` [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2010-05-28 21:23 UTC (permalink / raw)
To: buildroot
From: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
If threads are disabled, do not try to copy the libpthread.so from the
external library.
It is still expected that the BR configuration matches the external
toolchain setup, and no check is done to enforce that.
---
toolchain/external-toolchain/ext-tool.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/toolchain/external-toolchain/ext-tool.mk b/toolchain/external-toolchain/ext-tool.mk
index bb4809c..e858edb 100644
--- a/toolchain/external-toolchain/ext-tool.mk
+++ b/toolchain/external-toolchain/ext-tool.mk
@@ -251,7 +251,7 @@ check_cross_compiler_exists = \
uclibc: dependencies $(STAMP_DIR)/ext-toolchain-installed
-EXTERNAL_LIBS=libc.so libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libpthread.so libresolv.so librt.so libutil.so
+EXTERNAL_LIBS=libc.so libcrypt.so libdl.so libgcc_s.so libm.so libnsl.so libresolv.so librt.so libutil.so
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
EXTERNAL_LIBS+=ld-uClibc.so
else
@@ -262,6 +262,10 @@ ifeq ($(BR2_INSTALL_LIBSTDCPP),y)
EXTERNAL_LIBS+=libstdc++.so
endif
+ifneq ($(BR2_PTHREADS_NONE),y)
+EXTERNAL_LIBS+=libpthread.so
+endif # ! no threads
+
# 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 2/2] external toolchain: also copy the libthread_db.so for gdbserver
2010-05-28 21:23 [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Yann E. MORIN
@ 2010-05-28 21:23 ` Yann E. MORIN
2010-05-28 21:32 ` [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2010-05-28 21:23 UTC (permalink / raw)
To: buildroot
From: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
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" <yann.morin.1998@anciens.enib.fr>
---
toolchain/external-toolchain/ext-tool.mk | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/toolchain/external-toolchain/ext-tool.mk b/toolchain/external-toolchain/ext-tool.mk
index e858edb..8daae15 100644
--- a/toolchain/external-toolchain/ext-tool.mk
+++ b/toolchain/external-toolchain/ext-tool.mk
@@ -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,
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed
2010-05-28 21:23 [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Yann E. MORIN
2010-05-28 21:23 ` [Buildroot] [PATCH 2/2] external toolchain: also copy the libthread_db.so for gdbserver Yann E. MORIN
@ 2010-05-28 21:32 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2010-05-28 21:32 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@anciens.enib.fr> writes:
Yann> From: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Yann> If threads are disabled, do not try to copy the libpthread.so from the
Yann> external library.
Committed both, thanks!
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-28 21:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-28 21:23 [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Yann E. MORIN
2010-05-28 21:23 ` [Buildroot] [PATCH 2/2] external toolchain: also copy the libthread_db.so for gdbserver Yann E. MORIN
2010-05-28 21:32 ` [Buildroot] [PATCH 1/2] toolchain/external: only copt the pthread lib if needed Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox