All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] eglibc: include libgcc when libpthread is enabled
@ 2013-05-09 12:55 Bogdan Marinescu
  2013-05-09 13:19 ` Richard Purdie
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Bogdan Marinescu @ 2013-05-09 12:55 UTC (permalink / raw)
  To: openembedded-core

libpthread needs libgcc to function properly. Without libgcc I get
the following error:

root@qemux86:~# tclsh
% exit 0
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted
root@qemux86:~#

This patch fixes the above issue and similar ones by adding a
runtime dependency of libgcc to eglibc when threads are enabled.

Signed-off-by: Bogdan Marinescu <bogdan.a.marinescu@intel.com>
---
 meta/recipes-core/eglibc/eglibc.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc
index 1e04197..24fb05b 100644
--- a/meta/recipes-core/eglibc/eglibc.inc
+++ b/meta/recipes-core/eglibc/eglibc.inc
@@ -35,7 +35,7 @@ siteconfig_do_siteconfig_gencache_prepend = " \
 # nptl needs unwind support in gcc, which can't be built without glibc.
 DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers virtual/${TARGET_PREFIX}libc-initial"
 # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
-#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
+RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"
 PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
 PROVIDES += "virtual/libintl virtual/libiconv"
 inherit autotools
-- 
1.7.10.4




^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2013-05-09 16:59 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 12:55 [PATCH] eglibc: include libgcc when libpthread is enabled Bogdan Marinescu
2013-05-09 13:19 ` Richard Purdie
2013-05-09 14:32   ` Phil Blundell
2013-05-09 13:20 ` Phil Blundell
2013-05-09 13:28   ` Marinescu, Bogdan A
2013-05-09 14:08     ` Phil Blundell
2013-05-09 15:02       ` Phil Blundell
2013-05-09 14:25 ` Khem Raj
2013-05-09 14:32 ` Khem Raj
2013-05-09 15:26   ` Mark Hatle
2013-05-09 15:36     ` Richard Purdie
2013-05-09 15:40     ` Phil Blundell
2013-05-09 16:04       ` Mark Hatle
2013-05-09 16:40         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.