Boost logo

Boost-Build :

Subject: Re: [Boost-build] Static library using shared one
From: Juraj Ivanèiæ (juraj.ivancic_at_[hidden])
Date: 2013-03-06 07:55:42


On 6.3.2013. 11:55, Paul Graphov wrote:
> Thank you for answering.
>
> But this solution won't work well if I use link=static from command
> line, which is frequently used for local builds to avoid installing
> needed boost version system wide. Is there any way to say that library
> should be linked "default" way, i.e. stop this requirement from
> propagating?

True - it will not work with link=static. This should though:

static-lib my_lib
:
     lib.cxx
:
     <use>/boost//system
;

I tried it and it works for me.

> Also bjam seems to rejects this entirely:
>
> ....
> lib my_lib
> :
> lib.cxx
> :
> <use>/boost//system <link>shared
> <link>static
> ;
> ....

you were missing a slash - '<use>/boost//system/<link>shared', but it is
moot now.


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