X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/c172110d040a37bfa910a9d0785a260671569c5c..89e2d2f33c90af3dbbe7745b80ee60030264b01c:/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm diff --git a/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm b/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm index 8a251f9..da9b21b 100644 --- a/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm +++ b/dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Platform/Windows.pm @@ -1,5 +1,5 @@ package ExtUtils::CBuilder::Platform::Windows; - +$ExtUtils::CBuilder::Platform::Windows::VERSION = '0.280227'; use strict; use warnings; @@ -9,8 +9,7 @@ use File::Spec; use ExtUtils::CBuilder::Base; use IO::File; -use vars qw($VERSION @ISA); -$VERSION = '0.280216'; +use vars qw(@ISA); @ISA = qw(ExtUtils::CBuilder::Base); =begin comment @@ -58,7 +57,7 @@ sub split_like_shell { # array) to the target program and make the program parse it itself, # we don't actually need to do any processing here. (my $self, local $_) = @_; - + return @$_ if defined() && UNIVERSAL::isa($_, 'ARRAY'); return unless defined() && length(); return ($_); @@ -77,7 +76,7 @@ sub do_system { sub arg_defines { my ($self, %args) = @_; s/"/\\"/g foreach values %args; - return map qq{"-D$_=$args{$_}"}, keys %args; + return map qq{"-D$_=$args{$_}"}, sort keys %args; } sub compile { @@ -86,7 +85,7 @@ sub compile { die "Missing 'source' argument to compile()" unless defined $args{source}; - $args{include_dirs} = [ $args{include_dirs} ] + $args{include_dirs} = [ $args{include_dirs} ] if exists($args{include_dirs}) && ref($args{include_dirs}) ne "ARRAY"; my ($basename, $srcdir) = @@ -152,7 +151,7 @@ sub link { # if running in perl source tree, look for libs there, not installed my $lddlflags = $cf->{lddlflags}; my $perl_src = $self->perl_src(); - $lddlflags =~ s/\Q$cf->{archlibexp}\E[\\\/]CORE/$perl_src/ if $perl_src; + $lddlflags =~ s{\Q$cf->{archlibexp}\E[\\/]CORE}{$perl_src`/lib/CORE} if $perl_src; my %spec = ( srcdir => $to,