[perl-ExtUtils-Depends] Don't assume gcc on Win32 matches /^gcc/i



commit 4e05684b6aea3eb833c1006d5c10dab4d82a5aa1
Author: Florian Ragwitz <rafl debian org>
Date:   Wed Jan 26 08:43:34 2011 +0100

    Don't assume gcc on Win32 matches /^gcc/i
    
    RT#62455 claims this isn't always true and suggests this alternative. We believe
    them.

 lib/ExtUtils/Depends.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/ExtUtils/Depends.pm b/lib/ExtUtils/Depends.pm
index f5bb791..987e857 100644
--- a/lib/ExtUtils/Depends.pm
+++ b/lib/ExtUtils/Depends.pm
@@ -348,7 +348,7 @@ use Config;
 sub static_lib {
 	my $base = shift->SUPER::static_lib(@_);
 
-	return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /^gcc/i;
+	return $base unless $^O =~ /MSWin32/ && $Config{cc} =~ /\bgcc\b/i;
 
 	return <<'__EOM__';
 # This isn't actually a static lib, it just has the same name on Win32.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]