Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2gty-0000cL-DQ for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 17:04:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2gtx-000077-Ux for pgsql-committers@arkaria.postgresql.org; Thu, 12 Oct 2017 17:04:05 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2gtw-000068-Uf; Thu, 12 Oct 2017 17:04:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2gtu-0007ih-N0; Thu, 12 Oct 2017 17:04:03 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9CH3xw7000674; Thu, 12 Oct 2017 13:03:59 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, pgsql-committers@postgresql.org Subject: Re: [HACKERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles. In-reply-to: <22846.1507739540@sss.pgh.pa.us> References: <20171011154910.qwceculjehz5xyn3@alap3.anarazel.de> <20091.1507737538@sss.pgh.pa.us> <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> <22846.1507739540@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 11 Oct 2017 12:32:20 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <672.1507827839.1@sss.pgh.pa.us> Date: Thu, 12 Oct 2017 13:03:59 -0400 Message-ID: <673.1507827839@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org I wrote: > On reflection, let's just go with the solution of building libpgport_lib.a > with the right flags (fPIC + threading) and leave libpgport.a alone. > That way we don't need a debate about whether there's an efficiency > cost worth worrying about. I looked into this and got discouraged after realizing that not only does libpq pull in and recompile a bundle of src/port/ files, but also from src/common/, and even some random backend files like encnames.c and wchar.c. We could possibly apply the same build-a-third-way technique to src/common/, but we'd still end up with messiness for the encoding files. Perhaps what this is telling us is that encnames.c and wchar.c ought to be moved to src/common/. On top of that, there are also some interactions with the MSVC build system that I don't especially want to debug or untangle. In short, this is looking like a whole lot more work than we could ever hope to save by not having to maintain these file lists anymore. So I'm not planning to pursue it. If someone else wants to, though, have at it. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers