Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-03-02 17:00:41


----- Original Message -----
From: "Rene Rivera" <grafik666_at_[hidden]>
> Try $(<[1]:G=:D=).

Grist is always gone by the time you get inside an action, so :G= is
redundant.

> >I also need the boost version string. I am content to use
> >-sBOOST_VERSION=1.27 on the jam invocation, but if there is already a
> >variable that holds this value, I'd use it instead.
>
> That seems fine. I also just added "BOOST_VERSION" to the top level
Jamrules,
> so it should be useable without specifying it in the command line.

How does this get updated?

> > actions gcc-dllwrap bind NEEDLIBS
>
> There is one problem with this solution... it will tag any library
created
> regardless of wether it's in Boost or not. If you happen to use the
> Boost.Build system for something other than Boost, which I do, the
above would
> not be "a good thing".
>
> The best way is to specify the above in the dll target spec itself
with
> <linkflags>, which is what Dave was refering to above. It might look
like:
>
> dll test : test.cpp
> : <gcc><linkflags>"-Wl,-soname -Wl,libtest.so.$(BOOST_VERSION)"
> : debug release ;
>
>
> But even that seems somewhat cumbersome.

Good point; I leave solutions in your hands.

> Would it seem reasonable to add a <dllversion> feature? And possibly a
> <dllname> one also?

I understand the first one, but not the 2nd.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk