Commit 6946280c authored by Magnus Hagander's avatar Magnus Hagander

Actually pick .lib file when multiple perl libs are present

7240962f got it right in the comment,
but the code did not actually do what the comment said. Fix that.

Issue pointed out by Noah Misch.
parent f7c7f67f
...@@ -527,7 +527,7 @@ sub mkvcbuild ...@@ -527,7 +527,7 @@ sub mkvcbuild
# Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided. # Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided.
# In this case, prefer .lib. # In this case, prefer .lib.
my @perl_libs = my @perl_libs =
grep { /perl\d+\.lib$|libperl\d+\.a$/ } glob($perl_path); reverse sort grep { /perl\d+\.lib$|libperl\d+\.a$/ } glob($perl_path);
if (@perl_libs > 0) if (@perl_libs > 0)
{ {
$plperl->AddLibrary($perl_libs[0]); $plperl->AddLibrary($perl_libs[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment