Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7240962

Browse files
committed
Fix msvc builds for ActivePerl > 5.24
From this version ActivePerl ships both a .lib and a .a file for theperl library, which our code would detect as there being no libraryavailable. Instead, we should pick the .lib version and use that.Report and suggested fix in bug #15065Author: Heath Lord
1 parent17b340a commit7240962

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/tools/msvc/Mkvcbuild.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,11 @@ sub mkvcbuild
524524
my$perl_path =$solution->{options}->{perl} .'\lib\CORE\*perl*';
525525

526526
# ActivePerl 5.16 provided perl516.lib; 5.18 provided libperl518.a
527+
# Starting with ActivePerl 5.24, both perlnn.lib and libperlnn.a are provided.
528+
# In this case, prefer .lib.
527529
my@perl_libs =
528530
grep {/perl\d+\.lib$|libperl\d+\.a$/ }glob($perl_path);
529-
if (@perl_libs== 1)
531+
if (@perl_libs> 0)
530532
{
531533
$plperl->AddLibrary($perl_libs[0]);
532534
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp