diff options
author | Yitzchak Scott-Thoennes <sthoenna@efn.org> | 2000-12-07 13:32:43 -0800 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-08 16:03:08 +0000 |
commit | 659f4fc511096e10da01a8fc865bdea31f309580 (patch) | |
tree | 36687f0fc674815a62fa5eb78d30a4ae687afd24 /lib | |
parent | ed646e6e695bd0d512934a33fa4b7fabef9ff020 (diff) | |
download | perl-659f4fc511096e10da01a8fc865bdea31f309580.tar.gz |
[ID 20001207.009] Not OK: perl v5.7.0 +DEVEL8030 on os2-64int-ld 2.30
Message-Id: <200012080532.eB85Wh729109@garcia.efn.org>
p4raw-id: //depot/perl@8040
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ExtUtils/MM_OS2.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExtUtils/MM_OS2.pm b/lib/ExtUtils/MM_OS2.pm index 501832bfec..c0c52402f6 100644 --- a/lib/ExtUtils/MM_OS2.pm +++ b/lib/ExtUtils/MM_OS2.pm @@ -38,7 +38,7 @@ $self->{BASEEXT}.def: Makefile.PL ', "DL_VARS" => ', neatvalue($vars), ');\' '); } - if (%{$self->{IMPORTS}}) { + 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"; @@ -61,7 +61,7 @@ $self->{BASEEXT}.def: Makefile.PL sub static_lib { my($self) = @_; my $old = $self->ExtUtils::MM_Unix::static_lib(); - return $old unless %{$self->{IMPORTS}}; + return $old unless $self->{IMPORTS} && %{$self->{IMPORTS}}; my @chunks = split /\n{2,}/, $old; shift @chunks unless length $chunks[0]; # Empty lines at the start |