Subject: Re: [Boost-build] How to dynamically get the source?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2014-02-21 00:47:20
On 19.02.2014 17:57, Paulo Márcio Figueiredo Alves wrote:
> I have made a simple test to show the problem (attached file). If you do not use Boost.Thread, the problem does not occur.
> Adjust boost path (line 1) and call b2 -a, you'll see "recompile with -fPIC". Choose one of the commented choices
> for target foo_static and you will see that there is no way to make it work, unless you call b2 -a cxxflags=-fPIC.
> Is it a bug? Is there any workaround? Am I doing something wrong?
the issue here is that <cflags> is not passed through like this, we need to either make them passed, or issue
Anyway, the most immediate solution would be something like:
feature.feature fpic : off on : composite ;
feature.compose <fpic>on : <cflags>-fPIC <cxxflags>-fPIC ;
and use <fpic>on
Does this help?
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