pgsql: Fix MSVC scripts when building with GSSAPI/Kerberos

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix MSVC scripts when building with GSSAPI/Kerberos
Date: 2021-05-27 11:12:30
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix MSVC scripts when building with GSSAPI/Kerberos

The deliverables of upstream Kerberos on Windows are installed with
paths that do not match our MSVC scripts. First, the include folder was
named "inc/" in our scripts, but the upstream MSIs use "include/".
Second, the build would fail with 64-bit environments as the libraries
are named differently.

This commit adjusts the MSVC scripts to be compatible with the latest
installations of upstream, and I have checked that the compilation was
able to work with the 32-bit and 64-bit installations.

Special thanks to Kondo Yuta for the help in investigating the situation
in hamerkop, which had an incorrect configuration for the GSS
compilation.

Reported-by: Brian Ye
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 9.6

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/tools/msvc/Solution.pm | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2021-05-27 13:07:35 pgsql: Add NO_INSTALL option to pgxs
Previous Message Peter Eisentraut 2021-05-27 07:59:49 pgsql: Replace run-time error check with assertion