Boost logo

Boost-Build :

Subject: [Boost-build] How to remove specific compiler/linker flags for a target
From: Benjamin Prestele (benjamin.prestele_at_[hidden])
Date: 2010-04-25 04:09:03

Hi all,

is there a clean way to remove specific flags from the compiler / linker call on a per target basis?
I know that its possible to append new options by using e.g. <linkflags> in the target definition, but this does not help if a flag (which has been defined in the toolset's jamfile) needs to be completely removed from the compiler / linker call, as there is no equivalent flag to overwrite it.

Specifically, the "-Wl,-dead_strip -no_dead_strip_inits_and_terms" flags defined for <optimization> in the darwin.jam toolset seem to remove too much code in my case, causing the resulting applications to crash when using the release or profile build variants.

Is there a suggested way that does not require modifying the toolset jamfile?


Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at