Boost logo

Boost-Build :

Subject: [Boost-build] How to remove specific compiler/linker flags
From: Benjamin Prestele (benjamin.prestele_at_[hidden])
Date: 2010-05-05 13:53:22

Hi all,

I posted the following question on the mailing list a couple of days
ago, but unfortunately nobody replied.

Question: is there a way to remove specific flags from the toolset call
that boost build generates for a specific target (flags which have been
defined in the toolset's jamfile)? Is it possible to do this on a per
target basis, i.e. without having to modify the toolset jamfile?

In my case the "-Wl,-dead_strip -no_dead_strip_inits_and_terms" flags
defined for <optimization> in darwin.jam remove necessary assembly code
in some apps. So building <variant>release will create an incomplete
binary, causing the app to crash. Switching <optimization>off will
compile with -O0, which is also not desirable.

Any suggestions?


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