In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/e08b586cdf105c0a61deec0ca9ca1fc7f0cf0df7?hp=8420a9259d871a013affc80de1010e8f856c55fa>
- Log ----------------------------------------------------------------- commit e08b586cdf105c0a61deec0ca9ca1fc7f0cf0df7 Author: Sisyphus <sisyph...@optusnet.com.au> Date: Mon Sep 27 06:34:48 2010 -0700 [perl #73374] gccversion not always set with MinGW ----------------------------------------------------------------------- Summary of changes: win32/config_sh.PL | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/win32/config_sh.PL b/win32/config_sh.PL index 325ae80..2c319b5 100644 --- a/win32/config_sh.PL +++ b/win32/config_sh.PL @@ -99,8 +99,8 @@ if (exists $opt{cc}) { my $output = `bcc32 --version 2>&1`; $opt{ccversion} = $output =~ /([\d.]+)/ ? $1 : '?'; } - elsif ($opt{cc} eq 'gcc') { - chomp($opt{gccversion} = `gcc -dumpversion`); + elsif ($opt{cc} =~ /\bgcc\b/) { + chomp($opt{gccversion} = `$opt{cc} -dumpversion`); } } @@ -127,7 +127,7 @@ if ($opt{uselargefiles} eq 'define' and $opt{cc} ne 'bcc32') { if ($opt{cc} eq 'cl') { $opt{lseektype} = '__int64'; } - elsif ($opt{cc} eq 'gcc') { + elsif ($opt{cc} =~ /\bgcc\b/) { $opt{lseektype} = 'long long'; } } -- Perl5 Master Repository