[oe] libgcc not being pulled into OABI images

Thomas Kunze thommycheck at gmx.de
Sun Mar 30 23:40:10 UTC 2008


Hi,

I tested on my host machine (AMD64) and libgcc is not it NEEDED but is 
installed anyway. So it seems to be no problem that libgcc is not in 
needed. So I investigated libpthread and found out that it tries to 
dlopen libgcc and fails if it can't. Our shlibs code can't detect this 
so libgcc does not get pulled into image. So I suggest something like:

--- packages/glibc/glibc.inc    e9a2a880277298ca08e7f53a4e5c69127415a5ed
+++ packages/glibc/glibc.inc    3aa1e1a80cf9f0f899b5a79b857bfa5427f5d54e
@@ -7,6 +7,8 @@ DEPENDS = "${@['virtual/${TARGET_PREFIX}
 DEPENDS = "${@['virtual/${TARGET_PREFIX}gcc-initial', 
'virtual/${TARGET_PREFIX}gcc']['nptl' in '${GLIBC_ADDONS}']} 
linux-libc-headers"
 #this leads to circular deps, so lets not add it yet
 #RDEPENDS_ldd += " bash"
+# nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
+RDEPENDS += "${@['','libgcc']['ntpl' in '${GLIBC_ADDONS}']}"
 PROVIDES = "virtual/libc ${@['virtual/${TARGET_PREFIX}libc-for-gcc', 
'']['nptl' in '${GLIBC_ADDONS}']}"
 PROVIDES += "virtual/libintl virtual/libiconv"


Is it ok if I comit this (and bump PRs of all packages that use this file?)

Regards,
Thomas




More information about the Openembedded-devel mailing list