Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-08-17 09:12:11


Kevin Wheatley <hxpro_at_[hidden]> writes:

> Hi,
>
> I noticed that the mipspro tool always adds the compatibility headers
> to the compile line via STDC++HDRS. With newer versions of the
> compilers this is not needed > 7.4 +patch
>
> Patch SG0004605: 7.4 Compiler Header Files for Unix98, C99 and ANSI
> C++ namespace std
>
> What's the best way to create a fix for this - currently I just remove
> the line in question, but it would obviously be better to work out if
> the patch is installed (`showprods -1 -s patchSG0004605` returns
> patchSG0004605 if its installed and nothing otherwise) and add it
> conditionally.
>
> My problem is not knowing the build system :-)
>
> Suggestions?

You could use the shell rule to execute

showprods -1 -s patchSG0004605

and check to see if you get the result you want, something like:

flags mipspro STDC++HDRS : "$(MIPSPRO_C++INCLUDE_DIRECTORY)" ;

if ! [
MATCH ^(patchSG0004605)
: [ SHELL "showprods -1 -s patchSG0004605" ]
]
{
flags mipspro STDC++HDRS
: "$(BOOST_ROOT)/boost/compatibility/cpp_c_headers" ;

}

If it works, please post a patch (or fix it yourself if you have CVS
access).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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