Boost logo

Boost-Build :

Subject: [Boost-build] Injecting "buildid" into autolink library names
From: Daniel Krügler (dsp_at_[hidden])
Date: 2008-12-09 03:11:25


Hello,

We heavily take advantage of the optional "buildid" capability
of boost build. Previous to 1.37 we had to manipulate the bjam
files to realize the same effect. Currently one problem remains
for us: We also heavily use autolinking, and the problem is, that
as currently defined in config/autolink.hpp any buildid - if
assigned - will not make it into the computed library name in
this file. Currently we hack this around by manipulating the
autolink.hpp file, but my suggestion would be to extend autolink.hpp
to take any buildid into account.

Now comes the awkward part: I'm not totally sure that I completely
understand the boost build system ;-) (which is a fault on my side),
so my suggestion might be completely unrealistic: My impression is,
that autolink.hpp does *not* interact with bjam and has somehow
to replicate the rules to construct library names. Is this
assumption correct? In either case, does anyone have a good idea,
how one could more or less automatically transfer the build-id
(which is assigned during boost-build-time as commandline parameter
to the bjam invokation) to the autolink.hpp file?

I hope that such an extension of autolink.hpp is also interesting
for other parties!

Any ideas are welcome and thanks for your time,

Daniel Krügler


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