|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2005-05-26 01:05:31
On Thursday 26 May 2005 01:45, Craig Rodrigues wrote:
> Index: darwin.jam
> ===================================================================
> RCS file: /cvsroot/boost/boost/tools/build/v2/tools/darwin.jam,v
> retrieving revision 1.10
> diff -u -r1.10 darwin.jam
> --- darwin.jam 27 Dec 2004 09:07:04 -0000 1.10
> +++ darwin.jam 25 May 2005 21:37:07 -0000
> @@ -29,16 +29,20 @@
> gcc.init-link-flags darwin darwin $(condition) ;
> }
>
> -# Darwin has a different shared library suffix
> -type.set-generated-target-suffix SHARED_LIB : <toolset>darwin : dylib ;
> -# we need to be able to tell the type of .dylib files
> -type.register-suffixes dylib : SHARED_LIB ;
> -
> feature framework : : free ;
>
> flags darwin.compile OPTIONS <link>shared : -dynamic ;
> flags darwin.compile OPTIONS : -Wno-long-double -no-cpp-precomp ;
> -flags darwin.compile.c++ OPTIONS : -fcoalesce-templates ;
> +
> +local JAMUNAME = [ modules.peek : JAMUNAME ] ;
> +
> +# GCC 4.0, the default compiler in Darwin 8.0.0, does not have
> +# -fcoalesce-templates. GCC 3.3 needs it.
> +if ! [ MATCH "(g[+][+])" : $(.GXX) ] && $(JAMUNAME[3]) < "8.0.0" ||
I don't think in V2's darwin.jam, the .GXX variable has any value at all ;-)
I also don't understand thie logic -- do we add -fcoalesce-templates when
- OS version is less than 8.0 (reasonable), and
- Compiler name is not "g++".
Why check for "g++"? Isn't that the standard name? Can anybody clarify?
- Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
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