aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2018-01-03 15:26:39 -0500
committerAndrew Dunstan <andrew@dunslane.net>2018-01-03 15:36:54 -0500
commit99d5a3ffb9fe61a5a8b01a4759d93c627f018923 (patch)
tree198fa17684143ca3a749f245091f3426b5390cca /src
parent3c27944fb2141d8bd3942cb57e872174c6e1db97 (diff)
downloadpostgresql-99d5a3ffb9fe61a5a8b01a4759d93c627f018923.tar.gz
postgresql-99d5a3ffb9fe61a5a8b01a4759d93c627f018923.zip
Fix use of config-specific libraries for Windows OpenSSL
Commit 614350a3 allowed for an different builds of OpenSSL libraries on Windows, but ignored the fact that the alternative builds don't have config-specific libraries. This patch fixes the Solution file to ask for the correct libraries. per offline discussions with Leonardo Cecchi and Marco Nenciarini, Backpatch to all live branches.
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 6dcdd29f576..d3b50bd4efd 100644
--- a/src/tools/msvc/Solution.pm
+++ b/src/tools/msvc/Solution.pm
@@ -535,10 +535,12 @@ sub AddProject
}
else
{
+ # We don't expect the config-specific library to be here,
+ # so don't ask for it in last parameter
$proj->AddLibrary(
- $self->{options}->{openssl} . '\lib\ssleay32.lib', 1);
+ $self->{options}->{openssl} . '\lib\ssleay32.lib', 0);
$proj->AddLibrary(
- $self->{options}->{openssl} . '\lib\libeay32.lib', 1);
+ $self->{options}->{openssl} . '\lib\libeay32.lib', 0);
}
}
if ($self->{options}->{nls})