Subject: Re: [Boost-build] [EXTERNAL] cflags not being inherited
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2014-03-10 15:08:53
On 03/10/2014 11:53 AM, Paulo MÃ¡rcio Figueiredo Alves wrote:
> On Fri, Feb 21, 2014 at 2:47 AM, Vladimir Prus <ghost_at_[hidden]> wrote:
>> the issue here is that <cflags> is not passed through like this, we need
>> to either make them passed, or issue
>> an error.
>> 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?
> No, the error persists. The only solutions so far is pass cxxflags=-fPIC in
> command line.
> The solution proposed by Thomas Suckow does not work as well.
> Any idea how to solve this? Where can I investigate (jam or c file) the
The above is almost correct.
feature.feature fpic : on : optional composite propagated ;
feature.compose <fpic>on : <cflags>-fPIC <cxxflags>-fPIC ;
(Adding propagated is sufficient to cause it to be passed
to dependencies. I generally recommend making the feature
optional, so that it only appears when it's used)
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