<br><br><div class="gmail_quote">On 6 August 2010 08:49, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</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, Aug 5, 2010 at 4:08 PM, Daniel Stonier <<a href="mailto:d.stonier@gmail.com">d.stonier@gmail.com</a>> wrote:<br>
> I had to fix a couple of linkages that went missing in my ros libraries when<br>
> a dependency didn't get linked in (namely rt and pthreads) but haven't had<br>
> any other problems. Mind you, haven't been testing this for very long! I'm<br>
> enabling it as a default in our packages for the moment for testing.<br>
> Fedora and now gentoo (which is how I found out about it) are setting this<br>
> as a default in their builds now (some others as well). Mind you, just<br>
> because someone else is doing it is no justification, but it does mean its<br>
> seeing a bit of testing out in the wild and isn't one of those really<br>
> obscure settings with rather unknown effects.<br>
<br>
</div>Happy to hear that it works in general (would be pretty bad if it<br>
didn't...).  I'm more concerned about whether we're currently<br>
specifying everything completely, or unknowingly exploiting<br>
overlinkage.<br>
<br>
I guess the only way to find out is to build and test everything with<br>
that option included.<br>
<font color="#888888"><br>         brian.</font></blockquote><div> </div><div>Quick update re testing - our mac guy came back to work this morning and immediately hit a problem - the mac linker does not have --as-needed as an option. This may be a problem across other platforms too?</div>
<div><br></div><div>Mac does have another option which seems to be similar and does appear to work after a few compiles:</div><div><br></div><div>     -mark_dead_strippable_dylib<br>                 </div><div><br></div><div>
Specifies that the dylib being built can be dead strip by any client.<br>                 That is, the dylib has no initialization side effects.  So if a client<br>                 links against the dylib, but never uses any symbol from it, the linker<br>
                 can optimize away the use of the dylib.<br><br></div></div><div>Currently testing in our packages.</div><br>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/">http://snorriheim.dnsdojo.com/</a><br>
Yujin Robot: <a href="http://www.yujinrobot.com/">http://www.yujinrobot.com/</a><br>Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>