diff options
author | Sisyphus <sisyphus1@optusnet.com.au> | 2010-09-27 06:34:48 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-09-27 06:34:48 -0700 |
commit | e08b586cdf105c0a61deec0ca9ca1fc7f0cf0df7 (patch) | |
tree | 67df11e95809afc9e910942f8ebcc38f604a5a12 /win32/config_sh.PL | |
parent | 8420a9259d871a013affc80de1010e8f856c55fa (diff) | |
download | perl-e08b586cdf105c0a61deec0ca9ca1fc7f0cf0df7.tar.gz |
[perl #73374] gccversion not always set with MinGW
Diffstat (limited to 'win32/config_sh.PL')
-rw-r--r-- | 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 325ae80724..2c319b5e7e 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'; } } |