AW: Compile static postgres.lib for postgres 15.3 on Windows

From: Priess Stefan <stefan(dot)priess(at)nexus-chili(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: AW: Compile static postgres.lib for postgres 15.3 on Windows
Date: 2023-07-28 14:26:26
Message-ID: 8ede2140ca8f42b8ba897ad0618f8ef3@nexus-chili.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Tom!

I also need to change the default port from 5433 to 5432 (--with-pgport=5433). How can I do this using the build.bat toolchain? I don't see the pgport parameter in the config_default.pl file.

Best,

Stefan

nexus / chili

Stefan Priess
Softwareentwicklung

Tel: +49 6221 18079-10
E-Mail: stefan(dot)priess(at)nexus-chili(dot)com

NEXUS / CHILI GmbH, Friedrich-Ebert-Str. 2, 69221 Dossenheim/Heidelberg
www.nexus-chili.com

Eingetragene Gesellschaft beim Registergericht Mannheim, HRB 337363
Geschäftsführer: Dr. Uwe Engelmann, Dr. Heiko Münch

-----Ursprüngliche Nachricht-----
Von: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Gesendet: Freitag, 28. Juli 2023 14:48
An: Priess Stefan <stefan(dot)priess(at)nexus-chili(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Betreff: Re: Compile static postgres.lib for postgres 15.3 on Windows

Priess Stefan <stefan(dot)priess(at)nexus-chili(dot)com> writes:
> up to version 9.6.22 there was a win32.mak file in the src/interfaces/libpw folder which could be used to compile a static postgres.lib using nmake. Since Postgres 10 this file has been removed.

Yup. It didn't really work right and there was insufficient interest in maintaining it.

> Is it still possilbe to build a static postgres.lib for windows ? And if so, how do I do it.

Run the normal build process using MSVC, and then just take libpq.lib from the results. On any modern machine that's just going to take a few minutes, so it's not worth maintaining a separate libpq-only build path.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-07-28 14:43:54 Re: AW: Compile static postgres.lib for postgres 15.3 on Windows
Previous Message Ron 2023-07-28 14:12:02 Re: password error in batch script