diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-02-08 13:07:25 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-02-08 13:07:25 +0000 |
commit | a592ba15a3fa6c61975e7fb62c50cd2f64c750d6 (patch) | |
tree | 82a837ea03710de3dc0a81d0b9c3431527057b16 /lib/ExtUtils/MM_OS2.pm | |
parent | 5de3775cb1f5ef0af0777e63f1032a2b570b9dd9 (diff) | |
download | perl-a592ba15a3fa6c61975e7fb62c50cd2f64c750d6.tar.gz |
Upgrade to MakeMaker 6.43_01
p4raw-id: //depot/perl@33250
Diffstat (limited to 'lib/ExtUtils/MM_OS2.pm')
-rw-r--r-- | lib/ExtUtils/MM_OS2.pm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/ExtUtils/MM_OS2.pm b/lib/ExtUtils/MM_OS2.pm index 7d14ac701d..33ac54b9ca 100644 --- a/lib/ExtUtils/MM_OS2.pm +++ b/lib/ExtUtils/MM_OS2.pm @@ -1,16 +1,15 @@ package ExtUtils::MM_OS2; use strict; -use vars qw($VERSION @ISA); use ExtUtils::MakeMaker qw(neatvalue); use File::Spec; -$VERSION = '6.42'; +our $VERSION = '6.43_01'; require ExtUtils::MM_Any; require ExtUtils::MM_Unix; -@ISA = qw(ExtUtils::MM_Any ExtUtils::MM_Unix); +our @ISA = qw(ExtUtils::MM_Any ExtUtils::MM_Unix); =pod @@ -75,13 +74,12 @@ $self->{BASEEXT}.def: Makefile.PL if ($self->{IMPORTS} && %{$self->{IMPORTS}}) { # Make import files (needed for static build) -d 'tmp_imp' or mkdir 'tmp_imp', 0777 or die "Can't mkdir tmp_imp"; - open IMP, '>tmpimp.imp' or die "Can't open tmpimp.imp"; - my ($name, $exp); - while (($name, $exp)= each %{$self->{IMPORTS}}) { + open my $imp, '>', 'tmpimp.imp' or die "Can't open tmpimp.imp"; + while (my($name, $exp) = each %{$self->{IMPORTS}}) { my ($lib, $id) = ($exp =~ /(.*)\.(.*)/) or die "Malformed IMPORT `$exp'"; - print IMP "$name $lib $id ?\n"; + print $imp "$name $lib $id ?\n"; } - close IMP or die "Can't close tmpimp.imp"; + close $imp or die "Can't close tmpimp.imp"; # print "emximp -o tmpimp$Config::Config{lib_ext} tmpimp.imp\n"; system "emximp -o tmpimp$Config::Config{lib_ext} tmpimp.imp" and die "Cannot make import library: $!, \$?=$?"; |