Boost logo

Boost-Build :

Subject: Re: [Boost-build] Static library using shared one
From: Paul Graphov (graphov_at_[hidden])
Date: 2013-03-06 08:31:42


You are my saviour, thanks a lot!

Is this feature described anywhere? I was unable to find any single
occurrence...

On Wed, Mar 6, 2013 at 4:55 PM, Juraj Ivančić <juraj.ivancic_at_[hidden]> wrote:
> 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.
>
>
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost-build


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