Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-02-19 05:11:37


Andre Hentz wrote:

> I have another question for you. Some tests are failing because an
> extra -s flag is passed to ld. If you recall, darwin.jam inherits from
> gcc.jam. Obviously, the flag is ok for GNU ld but not for MAC's ld.
>
> In gcc.jam we have:
>
> flags gcc.link OPTIONS <debug-symbols>off : -s ;
>
> My question is: how can I undo that in darwin.jam?

There's no way :-(

Of course, it's not that bad. One can start by inlining toolset.inherit call:

import gcc ;

inherit-generators darwin : gcc ;
inherit-flags darwin : gcc ;
inherit-rules darwin : gcc ;

And then modify inherit-flags by adding a third parameter. That parameter
would be a list of properties flags settings for which should not be
inherited. Inside the body of inherit-flags, you would add

if [ set.intersection $(.$(rule-or-module).condition.$(f)) :
$(prohibited-properties ]

before adding the flag in new module. Care to try this idea ;-)

- Volodya

 


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