Re: Compile static postgres.lib for postgres 15.3 on Windows - Mailing list pgsql-general

From Tom Lane
Subject Re: Compile static postgres.lib for postgres 15.3 on Windows
Date
Msg-id 2326806.1690548487@sss.pgh.pa.us
Whole thread Raw
In response to Compile static postgres.lib for postgres 15.3 on Windows  (Priess Stefan <stefan.priess@nexus-chili.com>)
Responses AW: Compile static postgres.lib for postgres 15.3 on Windows
List pgsql-general
Priess Stefan <stefan.priess@nexus-chili.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
staticpostgres.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



pgsql-general by date:

Previous
From: Gert Cuykens
Date:
Subject: impact pgbench on a physical replicated stream
Next
From: Amn Ojee Uw
Date:
Subject: Re: PostgreSQL - How to login with my Linux user account