<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 9, 2013 at 4:20 PM, Phil Blundell <span dir="ltr"><<a href="mailto:pb@pbcl.net" target="_blank">pb@pbcl.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, 2013-05-09 at 15:55 +0300, Bogdan Marinescu wrote:<br>
</div><div class="im">> # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this<br>
> -#RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"<br>
> +RDEPENDS_${PN} += "${@['','libgcc']['nptl' in '${GLIBC_ADDONS}']}"<br>
<br>
</div>Wow, it seems like this has been broken since 2008 and nobody noticed.<br>
That line was commented out in oe-classic e96e82cd without any real<br>
explanation and it's been that way ever since.<br>
<br>
That said, forcing libgcc into RDEPENDS_${PN} unconditionally like this<br></blockquote><div><br></div><div style>It's not exactly unconditional, it is conditioned by 'nptl' in ${GLIBC_ADDONS}. I don't know of a better way to handle this, please let me know if you have any suggestions.</div>
<div style>About why this line was commented out, I don't know. git blame didn't help with this.</div><div style><br></div><div style>Thanks,</div><div style>Bogdan</div><div style> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
is suboptimal, because programs that don't link -lpthread (or possibly<br>
even programs that do, if they don't use cancellation) still don't need<br>
libgcc. With this change it will be impossible to avoid getting libgcc<br>
in an image, which will be a loss for those trying to build small images<br>
with single threaded programs.<br>
<span class="HOEnZb"><font color="#888888"><br>
p.<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>