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.96) (envelope-from ) id 1vXnne-0061dk-1k for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Dec 2025 21:50:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vXnnd-00GGL7-0E for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Dec 2025 21:50:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vXnnc-00GGKy-2V for pgsql-hackers@lists.postgresql.org; Mon, 22 Dec 2025 21:50:41 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vXnnc-00255p-0O for pgsql-hackers@postgresql.org; Mon, 22 Dec 2025 21:50:40 +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 5BMLocxY634374; Mon, 22 Dec 2025 16:50:38 -0500 From: Tom Lane To: Thomas Munro cc: Bryan Green , pgsql-hackers Subject: Re: [PATCH] O_CLOEXEC not honored on Windows - handle inheritance chain In-reply-to: References: <7f6779d5-7a0e-44c5-a85f-b4ef265db766@gmail.com> <35f9236e-95d8-4f31-ac6b-ec54b7de4bac@gmail.com> <7412f694-7c57-41e5-ae37-71136070b0da@gmail.com> <1086088.1765593851@sss.pgh.pa.us> <26678db0-519e-4c77-9b34-c5f94f97f6b9@gmail.com> <1115993.1765607595@sss.pgh.pa.us> <175163.1766357334@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 23 Dec 2025 10:38:31 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <634372.1766440238.1@sss.pgh.pa.us> Date: Mon, 22 Dec 2025 16:50:38 -0500 Message-ID: <634373.1766440238@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > That revealed another problem: Mkvcbuild.pm didn't add -lpgport. It > looks out for the pattern PG_LIBS_INTERNAL = $(libpq_pgport), so > that's an easy way to fix that -- is there a better way? I couldn't > figure out how to tell it that we need libpqport but not libpq. AFAICT from looking at v16 Mkvcbuild.pm, PG_LIBS_INTERNAL = $(libpq_pgport) will do exactly what you want because that only triggers it to add libpgport and libpgcommon (cf. lines 1053ff). I'm a little baffled by that --- shouldn't it be pulling in libpq as well? But let's let sleeping dogs lie. regards, tom lane