<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 11, 2014 at 3:54 PM, Alex J Lennon <span dir="ltr"><<a href="mailto:ajlennon@dynamicdevices.co.uk" target="_blank">ajlennon@dynamicdevices.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><br>
> I merged the patches but there is a strange behavior. With --as-needed<br>
> removed i still get the unneeded dependency.<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libmmal_core.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libmmal_util.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library:<br>
> [libmmal_vc_client.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libvcos.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libbcm_host.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libpthread.so.0]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libdl.so.2]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [librt.so.1]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libvchiq_arm.so]<br>
> Â 0x00000001 (NEEDED) Â Â Â Â Â Â Â Â Â Â Shared library: [libc.so.6]<br>
><br>
> Alex, can you take another look on this? It seems like somehow the fix<br>
> doesn't work for me.<br>
<br>
</div>If I understand you correctly the issue is that by default bitbake is<br>
providing --no-as-needed into the userland configuration step<br>
<br>
This has the effect that libmmal_vc_client is removed as a needed<br>
library, therefore not loaded when raspivid loads,<br>
and therefore doesn't register components that it would register when it<br>
was loaded (because of use of<br>
__attribute__((constructor,used)) decorating functions in that library).<br>
<br>
We override --as-needed with --no-as-needed so that the dependency upon<br>
libmmal_vc_client is no longer removed,<br>
which I think is what you show above. If you remove my patch you should<br>
see libmmal_vc_client disappear I believe.<br></blockquote><div><br></div><div>My bad. Clear now. Thanks. </div></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div style="text-align:center"></div><div style="text-align:center">
<div align="left" style="font-family:'Times New Roman';font-size:medium"><b style="color:rgb(51,51,51);font-family:Arial;font-size:small;text-align:center">Andrei Gherzan</b><font face="Arial" color="#333333" size="-1"><br>
</font><font face="Arial" color="#333333" size="-1">m: +40.744.478.414 | Â f: +40.31.816.28.12</font><br></div></div></div>
</div></div>