----- Original Message -----
From: "David Oswald" <daosw...@gmail.com>
To: "Sisyphus" <sisyph...@optusnet.com.au>; <inline@perl.org>
Sent: Friday, February 10, 2012 6:02 PM
Subject: Re: Solaris v2.11 C++ compiler detection for Inline::CPP
I've implemented three changes that should fix the Solaris issue.
1: Makefile.PL now attempts to detect if $Config{gccversion} has
anything meaningful in selecting the proper compiler.
2: Makefile.PL now detects $Config{cc} eq 'cc' version $Config{cc} eq
'CC' within the Solaris logic.
3: 00load_prereqs.t now provides diag() dumps of $Config{cc},
$Config{gccversion}, and $Config{osname} to help sort out the issue.
================================
Hi Dave,
Found this at
http://stackoverflow.com/questions/1516609/difference-between-cc-gcc-and-g :
On Solaris, CC is normally the name of the Sun C++ compiler.
On Solaris, cc is normally the name of the Sun C compiler.
That would indicate that if 'cc' is not 'gcc', then it's probably the sun cc
compiler - and you'll probably want CC as the C++ compiler.
Having a guess of 'cc' as the C++ compiler (which your patch does) is a bad
one, I think - as 'cc' is certain to be a *C compiler*.
Other than that, it looks good to me.
Cheers,
Rob