<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">&lt;<a href="mailto:pb@pbcl.net" target="_blank">pb@pbcl.net</a>&gt;</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">&gt;  # nptl needs libgcc but dlopens it, so our shlibs code doesn&#39;t detect this<br>
&gt; -#RDEPENDS_${PN} += &quot;${@[&#39;&#39;,&#39;libgcc&#39;][&#39;nptl&#39; in &#39;${GLIBC_ADDONS}&#39;]}&quot;<br>
&gt; +RDEPENDS_${PN} += &quot;${@[&#39;&#39;,&#39;libgcc&#39;][&#39;nptl&#39; in &#39;${GLIBC_ADDONS}&#39;]}&quot;<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&#39;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&#39;s not exactly unconditional, it is conditioned by &#39;nptl&#39; in ${GLIBC_ADDONS}. I don&#39;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&#39;t know. git blame didn&#39;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&#39;t link -lpthread (or possibly<br>
even programs that do, if they don&#39;t use cancellation) still don&#39;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>