|
Boost-Build : |
Subject: Re: [Boost-build] [Boost][build] Bjam ordering source $(>) list
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-06-26 16:08:37
AMDG
K. Noel Belcourt wrote:
> Thanks for the push, I dug in a bit more to see how sources $(>) are
> populated for the link action.
>
> In builtin.jam, linking-generator.generated-targets() is the place to
> alter what ends up in $(>), and in what order. For my problem, I
> separated the OBJ sources from all other sources so I could place the
> OBJ before STATIC_LIB, etc... The fix turned out to work beautifully
> as you can see here.
> <snip>
>
> This patch moves all objects before non-objects and retains their
> respective relative ordering, so as not to break the dependency ordering.
>
> Anyone think this is this worth committing to Boost.Build?
Maybe you can use unix-linking-generator which also
makes sure that dependent libraries are placed in the correct order?
In Christ,
Steven Watanabe
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