Subject: Re: [Boost-build] Is this the right way to add compiler flags to specific libraries
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-05-28 10:06:59
Vladimir Prus wrote:
> [Reposting, with list in CC]
> On Wednesday 27 May 2009 20:08:29 you wrote:
>> GCC 4.4, which is what we are currently in the development version of
>> openSUSE currently reports a number of false positive warnings regarding
>> strict-aliasing. Therefore I have to pass -Wno-strict-aliasing for those
>> libraries where these erroneous warnings are put out.
>> Now I'm still not very familiar with the jam syntax and the current features
>> of boost.build. As far as I've found out till now, something like
>> project boost/foo
>> : source-location ../src
>> : requirements <toolset-gcc:version>4.4:<cxxflags>-Wno-strict-aliasing
>> should do the trick, right?
> Yes, this should work.
> might work as well.
That syntax is broken in target requirements, I don't know about project
Also, be careful about two digit vs. three digit version numbers.
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