Subject: [PATCH] building win32 perl with cygwin's mingw (was: Re: [PATCH] Re: lib/Config/Extensions.t fails on Win32)
Message-ID: <
20050114001136.GC2516@efn.org>
p4raw-id: //depot/perl@23807
use Config;
use strict;
-our $VERSION = "1.09_00";
+our $VERSION = "1.09_01";
my %err = ();
my %wsa = ();
sub process_file {
my($file) = @_;
+ # for win32 perl under cygwin, we need to get a windows pathname
+ if ($^O eq 'MSWin32' && $Config{cc} =~ /\B-mno-cygwin\b/ &&
+ defined($file) && !-f $file) {
+ chomp($file = `cygpath -w "$file"`);
+ }
+
return unless defined $file and -f $file;
# warn "Processing $file\n";