Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to remove specific compiler/linker flags
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-05-05 17:23:23


On Wed, 05 May 2010 19:53:22 +0200, Benjamin Prestele
<benjamin.prestele_at_[hidden]> wrote:

> [...]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.

A shot into the dark: If you use <optimization>off did you try to
explicitly set the -O command line option with <cxxflags>?

Boris


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