|
Boost-Build : |
From: Alexey Syomichev (bjamfan_at_[hidden])
Date: 2007-03-27 14:16:54
Hi,
My project links against a set of pre-built static libraries, which
are declared using the "lib" rule, with dependencies expressed with
the <use> requirement. The linker makes a single pass, so the order of
the libraries as they appear on the link line is important. When it
comes to calculating the correct library order, the only case it seems
to work is when the libraries are declared using <search> and <name>
requirements. I prefer a more precise method based on the <file>
property, which translates into the "object file" notation on the link
line, but then the order seems to change depending on where I declare
the pre-built targets (the project itself or its parent), and how I
invoke the build ("bjam" or "bjam <target>"): in other words, the
order becomes undefined. Is ordering supposed to work with pre-built
libraries declared with <file> at all?
I am using m11, but tried with a recent CVS snapshot as well with the
same result.
Thanks,
--Alexey
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