Subject: Re: [Boost-build] How to remove specific compiler/linker flags
From: Benjamin Prestele (benjamin.prestele_at_[hidden])
Date: 2010-05-07 01:57:28
>> 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.
Actually I'm not an assembly programmer and therefore would like to not touch this code unless necessary. But I think I'll try this out, too. What does the <force-load> feature do?
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