Skip to content

Commit 6946280

Browse files
committed
Actually pick .lib file when multiple perl libs are present
7240962 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.
1 parent f7c7f67 commit 6946280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/msvc/Mkvcbuild.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ sub mkvcbuild
527527
# Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided.
528528
# In this case, prefer .lib.
529529
my @perl_libs =
530-
grep { /perl\d+\.lib$|libperl\d+\.a$/ } glob($perl_path);
530+
reverse sort grep { /perl\d+\.lib$|libperl\d+\.a$/ } glob($perl_path);
531531
if (@perl_libs > 0)
532532
{
533533
$plperl->AddLibrary($perl_libs[0]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy