I have a shared library that links statically with boost.


On Wed, Feb 12, 2014 at 6:34 PM, Paulo Márcio Figueiredo Alves <pauloalves1986@gmail.com> wrote:
I want to link statically with boost libraries.


On Wed, Feb 12, 2014 at 6:32 PM, Belcourt, Kenneth <kbelco@sandia.gov> wrote:

On Feb 12, 2014, at 1:23 PM, Paulo Márcio Figueiredo Alves wrote:

> I'm trying to use boost like that
>
> use-project boost : /path/to/boost ;
>
> and it is working. But now I want to pass <cflags>-fPIC, I need boost to be compiled with it and do not want to write <target-os>linux:<library>boost/thread/<cflags>-fPIC.
> I've tried to use
>
> project : requeriments <cflags>-fPIC ;
>
> but does not work anyway.
>
> Any ideas?

project : requirements <link>shared ;

should do it.

-- Noel

> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build