diff options
-rw-r--r-- | jpl/JNI/Makefile.PL | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/jpl/JNI/Makefile.PL b/jpl/JNI/Makefile.PL index 1a54b9d82c..754bde68ed 100644 --- a/jpl/JNI/Makefile.PL +++ b/jpl/JNI/Makefile.PL @@ -115,11 +115,12 @@ sub find_stuff { my ($candidates, $locations) = @_; - my $lib; + my ($pos,$lib); $wanted = sub { foreach my $name (@$candidates) { - if (/$name$/ and ! /green_threads/ and !/include-old/) { - $lib = $File::Find::name; + $pos = $File::Find::name; + if (/$name$/ && $pos !~ /green_threads/ && $pos !~ /include-old/) { + $lib = $pos; } } }; |