summaryrefslogtreecommitdiff
path: root/lib/ExtUtils/MM_OS2.pm
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2000-12-09 12:30:43 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2000-12-09 12:30:43 +0000
commit553151e7a76c75a9f0ccbf6e0802e72fde2ec8f2 (patch)
tree8edfed529ab585fc3fffcdea329f73a8f70dc568 /lib/ExtUtils/MM_OS2.pm
parent9f2fcde2fd69814c4c7eeae7dbeadfe25b591bc0 (diff)
parent185419472dd17e55d44dadf1694c95abd0142e43 (diff)
downloadperl-553151e7a76c75a9f0ccbf6e0802e72fde2ec8f2.tar.gz
Integrate mainline.
p4raw-id: //depot/perlio@8048
Diffstat (limited to 'lib/ExtUtils/MM_OS2.pm')
-rw-r--r--lib/ExtUtils/MM_OS2.pm4
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