[ros-users] Linker --as-needed

Brian Gerkey gerkey at willowgarage.com
Thu Aug 5 23:49:37 UTC 2010


On Thu, Aug 5, 2010 at 4:08 PM, Daniel Stonier <d.stonier at gmail.com> wrote:
> I had to fix a couple of linkages that went missing in my ros libraries when
> a dependency didn't get linked in (namely rt and pthreads) but haven't had
> any other problems. Mind you, haven't been testing this for very long! I'm
> enabling it as a default in our packages for the moment for testing.
> Fedora and now gentoo (which is how I found out about it) are setting this
> as a default in their builds now (some others as well). Mind you, just
> because someone else is doing it is no justification, but it does mean its
> seeing a bit of testing out in the wild and isn't one of those really
> obscure settings with rather unknown effects.

Happy to hear that it works in general (would be pretty bad if it
didn't...).  I'm more concerned about whether we're currently
specifying everything completely, or unknowingly exploiting
overlinkage.

I guess the only way to find out is to build and test everything with
that option included.

	brian.



More information about the ros-users mailing list