Skip to content

Commit d829e47

Browse files
committed
Added perl patch to PG10
1 parent 79e5c7e commit d829e47

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

patches/postgresql/10/perl522.patch

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
2+
index d7638b4..ccf1f76 100644
3+
--- a/src/tools/msvc/MSBuildProject.pm
4+
+++ b/src/tools/msvc/MSBuildProject.pm
5+
@@ -345,6 +345,9 @@ EOF
6+
$d =~ s/__CFGNAME__/$cfgname/g;
7+
print $f " <ModuleDefinitionFile>$d</ModuleDefinitionFile>\n";
8+
}
9+
+ if ($self->{name} =~ /plperl/ and $self->{platform} eq 'Win32') {
10+
+ print $f " <ImageHasSafeExceptionHandlers>false</ImageHasSafeExceptionHandlers>\n";
11+
+ }
12+
print $f <<EOF;
13+
</Link>
14+
<ResourceCompile>
15+
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
16+
index 21faa58..7012bfa 100644
17+
--- a/src/tools/msvc/Mkvcbuild.pm
18+
+++ b/src/tools/msvc/Mkvcbuild.pm
19+
@@ -572,8 +578,8 @@ sub mkvcbuild
20+
}
21+
$plperl->AddReference($postgres);
22+
my @perl_libs =
23+
- grep { /perl\d+.lib$/ }
24+
- glob($solution->{options}->{perl} . '\lib\CORE\perl*.lib');
25+
+ grep { /perl\d+\.(lib|a)$/ }
26+
+ glob($solution->{options}->{perl} . '\lib\CORE\*.*');
27+
if (@perl_libs == 1)
28+
{
29+
$plperl->AddLibrary($perl_libs[0]);

patches/postgresql/10/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
perl522.patch

0 commit comments

Comments
 (0)