|
Boost-Build : |
From: Vincent N. Virgilio (virgilio_at_[hidden])
Date: 2004-03-31 03:13:09
Hello,
I wanted v2 to support the gcc flag -mno-cygwin on Cygwin, so I made the
following change to boost_1_31_0/tools/build/v2/tools/gcc.jam:
*** gcc.jam.orig Wed Mar 31 02:27:29 2004
--- gcc.jam Wed Mar 31 02:23:33 2004
***************
*** 30,35 ****
--- 30,41 ----
# with 'g++'.
rule init ( a1 * : a2 * : a3 * )
{
+ if $(a2) = nocygwin
+ {
+ flags gcc.compile OPTIONS : -mno-cygwin ;
+ flags gcc.link OPTIONS : -mno-cygwin ;
+ }
+
if $(a1)
{
local version = $(a1[1]) ;
It enables the following line in
boost_1_31_0/tools/build/v2/user-config.jam:
using gcc : : nocygwin ;
I am not sure if the flag is required during the compile as it is during
the link.
I am a complete novice at jam, bjam, and Boost.Build. The above was in
support of my first Jamfile, so I figure it must violate at least good
style, if nothing else.
Could an improved version of this be committed to CVS? If not, what are
the complications?
Regards,
-- Vince Virgilio
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