From: Toon Knapen (toon.knapen_at_[hidden])
Date: 2004-08-23 01:44:19
Daniel Schlyder wrote:
> Found this in gcc-tools.jam:
> # for gcc, we repeat all libraries so that dependencies are always resolved
> actions gcc-Link-action bind NEEDLIBS NEEDIMPS
> The comment is incorrect. Only NEEDLIBS are repeated; FINDLIBS are not.
> Repeating FINDLIBS would fix linking on GCC. Not sure if this could be
> considered a fix or just an ugly work-around, but I think it would be good to
> add this to remove link order problem completely. Order in requirements section
> wasn't respected fully before this latest bjam change, anyway.
I always add a second FINDLIBS in my local boost to make things work
because indeed in many cases this is necessary. Vladimir however told me
that there is better dependency control in v2 and thus such ugly
workarounds should not be necessary anymore.
But the lexicographical sort was a new thing which really messes things
up. Theoretically this 'random' order of libraries in the link-line
obliges you to add FINDLIBS n times to the link-line, where n is the
total number of libraries.
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk