Boost logo

Boost-Build :

Subject: Re: [Boost-build] How to remove specific compiler/linker flags
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2010-05-06 17:30:18


On 5/5/2010 12:53 PM, Benjamin Prestele wrote:
> 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?

Sorry... I've been rather busy since you asked this.. And I wont be able
to really respond to the rest of the email in this thread. But, since
you are doing assembly, why don't you also use the ".no_dead_strip
<symbol>" Mac assembler directive?

Note, I recently add a <force-load>library.a feature to darwin.jam which
might also be of use.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org (msn) - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim,yahoo,skype,efnet,gmail

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