]> git.imager.perl.org - imager.git/commitdiff
support libbase as an arrayref for fake probing
authorTony Cook <tony@develop-help.com>
Thu, 6 Dec 2018 09:08:49 +0000 (20:08 +1100)
committerTony Cook <tony@develop-help.com>
Thu, 6 Dec 2018 09:40:30 +0000 (20:40 +1100)
lib/Imager/Probe.pm

index 9fabb817c312fddecfd0d7acebdc1a5b6698e688..0bb3825637f76faca17b6e3345dfb8af6d3172c7 100644 (file)
@@ -4,7 +4,7 @@ use File::Spec;
 use Config;
 use Cwd ();
 
-our $VERSION = "1.005";
+our $VERSION = "1.006";
 
 my @alt_transfer = qw/altname incsuffix libbase/;
 
@@ -300,7 +300,10 @@ sub _probe_fake {
   elsif (defined $req->{libbase}) {
     # might not need extra libraries, eg. Win32 perl already links
     # everything
-    $lopts = $req->{libbase} ? "-l$req->{libbase}" : "";
+    my @libs = $req->{libbase}
+      ? ( ref $req->{libbase} ? @{$ref->{libbase}} : $ref->{libbase} )
+      : ();
+    $lopts = join " ", map _lib_option($_), @libs;
   }
   if (defined $lopts) {
     print "$req->{name}: Checking if the compiler can find them on its own\n";