mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Find openssl lib files in right directory for MSVC
Some openssl builds put their lib files in a VC subdirectory, others do not. Cater for both cases. Backpatch to all live branches. From an offline discussion with Leonardo Cecchi.
This commit is contained in:
parent
d466335064
commit
614350a3ab
@ -523,10 +523,20 @@ sub AddProject
|
||||
if ($self->{options}->{openssl})
|
||||
{
|
||||
$proj->AddIncludeDir($self->{options}->{openssl} . '\include');
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1);
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1);
|
||||
if (-e "$self->{options}->{openssl}/lib/VC/ssleayMD.lib")
|
||||
{
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\VC\ssleay32.lib', 1);
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\VC\libeay32.lib', 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\ssleay32.lib', 1);
|
||||
$proj->AddLibrary(
|
||||
$self->{options}->{openssl} . '\lib\libeay32.lib', 1);
|
||||
}
|
||||
}
|
||||
if ($self->{options}->{nls})
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user