pgsql: Add support for OpenSSL 1.1.0 and newer versions in MSVC scripts

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add support for OpenSSL 1.1.0 and newer versions in MSVC scripts
Date: 2019-06-26 01:47:30
Message-ID: E1hfx22-0002ko-1p@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d993e0fb82ffaa15be72c1ac10403bfa06708069

Modified Files
--------------
src/tools/msvc/Solution.pm | 121 +++++++++++++++++++++++++++++++++++++++------
1 file changed, 106 insertions(+), 15 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-06-26 03:19:42 pgsql: Follow the rule that regression-test-created roles are named "re
Previous Message Tom Lane 2019-06-26 00:18:47 Re: UCT (Re: pgsql: Update time zone data files to tzdata release 2019a.)