Craig A. Berry [Thu, 4 Jun 2009 13:10:50 +0000 (08:10 -0500)]
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
# 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