Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPMtD-00Anz4-4w for pgsql-general@arkaria.postgresql.org; Fri, 28 Jul 2023 12:48:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qPMtB-00G1WJ-Id for pgsql-general@arkaria.postgresql.org; Fri, 28 Jul 2023 12:48:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPMtB-00G1WB-8L for pgsql-general@lists.postgresql.org; Fri, 28 Jul 2023 12:48:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qPMt8-000snf-Sg for pgsql-general@lists.postgresql.org; Fri, 28 Jul 2023 12:48:12 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 36SCm7OY2326807; Fri, 28 Jul 2023 08:48:08 -0400 From: Tom Lane To: Priess Stefan cc: "pgsql-general@lists.postgresql.org" Subject: Re: Compile static postgres.lib for postgres 15.3 on Windows In-reply-to: <4236ecee89c04926aa9f53e065516729@nexus-chili.com> References: <4236ecee89c04926aa9f53e065516729@nexus-chili.com> Comments: In-reply-to Priess Stefan message dated "Fri, 28 Jul 2023 10:23:07 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2326805.1690548487.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 28 Jul 2023 08:48:07 -0400 Message-ID: <2326806.1690548487@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Priess Stefan writes: > up to version 9.6.22 there was a win32.mak file in the src/interfaces/li= bpw folder which could be used to compile a static postgres.lib using nmak= e. 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