Boost logo

Boost-Build :

Subject: Re: [Boost-build] [EXTERNAL] cflags not being inherited
From: Thomas Suckow (thomas.suckow_at_[hidden])
Date: 2014-02-12 15:45:44


On 02/12/2014 12:34 PM, Paulo Márcio Figueiredo Alves wrote:
> I want to link statically with boost libraries.
>
>

Take a look at
http://www.boost.org/boost-build2/doc/html/bbv2/tutorial/linkage.html

I believe what you want to do is force your library to be shared:
lib l : l.cpp : <link>shared ;

And when you use boost, force it to be static:
lib l : l.cpp /boost//thread/<link>static : <link>shared ;

Boost-build should then do the right thing I believe.

--
Thomas

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