summaryrefslogtreecommitdiff
path: root/lib/ExtUtils
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2009-06-04 08:10:50 -0500
committerCraig A. Berry <craigberry@mac.com>2009-06-04 10:16:43 -0500
commit8415bfe009d4d13c8d970b3e09ff685cfe5dc0d2 (patch)
tree91cea19bce3062fc3db318059123024c8385959c /lib/ExtUtils
parent30e682852bf42358156ed62e06e91f75e9f5b807 (diff)
downloadperl-8415bfe009d4d13c8d970b3e09ff685cfe5dc0d2.tar.gz
MakeMaker must handle an empty $self->{LIBS} array.
6.52 broke the build on VMS because the Makefile.PL for Time::HiRes sends C<'LIBS' => []> to WriteMakefile() and the code to handle that case was removed in a refactor, so we ended up not linking against the main perl library (perlshr.exe on VMS). More details and an upstream submission of this patch are at: https://rt.cpan.org/Ticket/Display.html?id=46633
Diffstat (limited to 'lib/ExtUtils')
-rw-r--r--lib/ExtUtils/MM_Any.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExtUtils/MM_Any.pm b/lib/ExtUtils/MM_Any.pm
index 9ee5abcc8c..4fde1fee6c 100644
--- a/lib/ExtUtils/MM_Any.pm
+++ b/lib/ExtUtils/MM_Any.pm
@@ -1778,9 +1778,9 @@ CODE
# undefined. In any case we turn it into an anon array:
# May check $Config{libs} too, thus not empty.
- $self->{LIBS} = !defined $self->{LIBS} ? [''] :
- !ref $self->{LIBS} ? [$self->{LIBS}] :
- $self->{LIBS} ;
+ $self->{LIBS} = [$self->{LIBS}] unless ref $self->{LIBS};
+
+ $self->{LIBS} = [''] unless @{$self->{LIBS}} && defined $self->{LIBS}[0];
foreach my $libs ( @{$self->{LIBS}} ){
$libs =~ s/^\s*(.*\S)\s*$/$1/; # remove leading and trailing whitespace