On Thu, Feb 9, 2012 at 5:26 PM, Sisyphus <sisyph...@optusnet.com.au> wrote:
>
> ----- Original Message ----- From: "David Oswald"
>
>
>> It looks to me like the 'if( $config{cc} eq 'gcc' ) .... " code is
>> falling through to the else clause that sets $cc_guess to 'CC', and in
>> this case probably shouldn't be.
>
>
> Yes - looking a bit more closely, I see that these failing reports show that
> $Config{cc} is set to 'cc', not 'gcc'.
> They also report a setting for $Config{gccversion} which, I guess, indicates
> that 'cc' is really 'gcc' and that 'g++' would be the C++ compiler that
> needs to be invoked.

That code was added to Makefile.PL in version 0.23 way back in 2003.
I'm sure it was added for a reason.  I'm thinking that rather than
second-guess the reason, I should probably figure out how to make the
test more accurate or fine grained.  There must have been a reason
that CC was put in there as a fall-through default for Solaris... we
just happen to be falling through in a case where it is probably
inappropriate to do so.  But if I remove that test and remove CC as an
option I'll probably break some other Solaris install.  For more
insight I'm going to have to hear from someone who understands
Solaris's unique needs throughout the past decade.  Good luck with
that!  ;)

Dave

-- 

David Oswald
daosw...@gmail.com

Reply via email to