]> granicus.if.org Git - postgresql/commit
Add support for OpenSSL 1.1.0 and newer versions in MSVC scripts
authorMichael Paquier <michael@paquier.xyz>
Wed, 26 Jun 2019 14:05:06 +0000 (23:05 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 26 Jun 2019 14:05:06 +0000 (23:05 +0900)
commita559805597d5e860796d6c9430134b8e41022ef8
tree950e0fc5297f21f40cc6e456ddff411a837c96aa
parent80931442c9c93b6c94d56808697648e44f0625ee
Add support for OpenSSL 1.1.0 and newer versions in MSVC scripts

Up to now, the MSVC build scripts are able to support only one fixed
version of OpenSSL, and they lacked logic to detect the version of
OpenSSL a given compilation of Postgres is linking to (currently 1.0.2,
the latest LTS of upstream which will be EOL'd at the end of 2019).

This commit adds more logic to detect the version of OpenSSL used by a
build and makes use of it to add support for compilation with OpenSSL
1.1.0 which requires a new set of compilation flags to work properly.

The supported OpenSSL installers have changed their library layer with
various library renames with the upgrade to 1.1.0, making the logic a
bit more complicated.  The scripts are now able to adapt to the new
world order.

Reported-by: Sergey Pashkov
Author: Juan José Santamaría Flecha, Michael Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/15789-8fc75dea3c5a17c8@postgresql.org
Backpatch-through: 9.4
src/tools/msvc/Solution.pm