Fix getlibdirs when libdirs is unset

master
Simon McVittie 2014-12-16 08:11:59 +00:00
parent d9dd357eb2
commit f570c89214
2 changed files with 6 additions and 1 deletions

View File

@ -569,7 +569,10 @@ sub getsetup () {
}
sub getlibdirs () {
my @libdirs = @{$config{libdirs}};
my @libdirs;
if ($config{libdirs}) {
@libdirs = @{$config{libdirs}};
}
if (length $config{libdir}) {
push @libdirs, $config{libdir};
}

View File

@ -11,3 +11,5 @@ This error is triggered when $config{libdirs} is undefined; it didn't happen in
A simple patch would be to alter that line to this:
my @libdirs = $config{libdirs} ? @{$config{libdirs}} : ();
> [[Fixed|done]], sorry about that --[[smcv]]