From: Tom Lane <tgl@sss.pgh.pa.us>
To: Priess Stefan <stefan.priess@nexus-chili.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Compile static postgres.lib for postgres 15.3 on Windows
Date: Fri, 28 Jul 2023 08:48:07 -0400
Message-ID: <2326806.1690548487@sss.pgh.pa.us> (raw)
In-Reply-To: <4236ecee89c04926aa9f53e065516729@nexus-chili.com>
References: <4236ecee89c04926aa9f53e065516729@nexus-chili.com>
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 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, stefan.priess@nexus-chili.com
Subject: Re: Compile static postgres.lib for postgres 15.3 on Windows
In-Reply-To: <2326806.1690548487@sss.pgh.pa.us>
References: <4236ecee89c04926aa9f53e065516729@nexus-chili.com> <2326806.1690548487@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox