<div dir="ltr">Apparently there are some issues with ios 64-bit osx: "<a href="http://stackoverflow.com/questions/2906147/what-does-the-all-load-linker-flag-do">http://stackoverflow.com/questions/2906147/what-does-the-all-load-linker-flag-do</a>":<div>
<br></div><div><strong style="font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px;color:rgb(0,0,0)">"Important:</strong><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px"> For 64-bit and iPhone OS applications, there is a linker bug that prevents </span><code style="font-size:13px;font-family:Courier,Consolas,monospace;color:rgb(102,102,102)">-ObjC</code><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px"> from loading objects files from static libraries that contain only categories and no classes. The workaround is to use the </span><code style="font-size:13px;font-family:Courier,Consolas,monospace;color:rgb(102,102,102)">-all_load</code><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px"> or </span><code style="font-size:13px;font-family:Courier,Consolas,monospace;color:rgb(102,102,102)">-force_load</code><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px"> flags"</span><br>
</div><div><span style="color:rgb(0,0,0);font-family:'Lucida Grande','Lucida Sans Unicode',Helvetica,Arial,Verdana,sans-serif;font-size:13px"><br></span></div><div> </div><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/2/13 "René J.V. Bertin" <span dir="ltr"><<a href="mailto:rjvbertin@gmail.com" target="_blank">rjvbertin@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Feb 13, 2013, at 18:55, Lars Hammarstrand wrote:<br>
<br>
> > There's your explanation (from `man gcc`):<br>
> > -all_load<br>
> > Loads all members of static archive libraries. See man ld(1) for more information.<br>
><br>
> Good eyes and a very observant mind, thank you very much ;-)<br>
<br>
</div>Bah, who knows what font size I have in my mail reader? ;)<br>
<br>
IIRC, -all_load is mostly/only of interest when creating libraries from other (static) libraries, to ensure that all functions/modules get pulled in. I don't really see the interest when linking an application, unless of course you want to enable plugins to dlsym variables or functions that the app doesn't use itself. And I'm not sure if I find that better practice than defining global variables multiple times in public libraries ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
R.<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>