Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Jvp-0006F6-Ku for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Oct 2017 16:32:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2Jvo-000191-OX for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Oct 2017 16:32:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2Jvo-00018n-5Y; Wed, 11 Oct 2017 16:32:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2Jvk-00027r-JF; Wed, 11 Oct 2017 16:32:27 +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 v9BGWKSL022847; Wed, 11 Oct 2017 12:32:20 -0400 From: Tom Lane To: pgsql-hackers@postgresql.org, Andres Freund cc: pgsql-committers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Add port/strnlen support to libpq and ecpg Makefiles. In-reply-to: <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> References: <20171011154910.qwceculjehz5xyn3@alap3.anarazel.de> <20091.1507737538@sss.pgh.pa.us> <20171011161218.xnnedpo47qa2voi6@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 11 Oct 2017 09:12:18 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22845.1507739540.1@sss.pgh.pa.us> Date: Wed, 11 Oct 2017 12:32:20 -0400 Message-ID: <22846.1507739540@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > On 2017-10-11 11:58:58 -0400, Tom Lane wrote: >> I agree the PITA factor of the current approach keeps increasing. >> It sounds a bit silly to build libpgport three ways, but maybe >> we should just do that. > We already kinda are, just by copying things around ;) Yeah. I hadn't realized how much duplication of effort is happening within ecpg. This was a somewhat reasonable solution when it was first invented for libpq only, but building snprintf.o four times is pretty silly. >> Or conceivably we should just build the FE version of libpgport.a >> with -fPIC and not worry about whether that loses some efficiency >> for client programs. A lot of distros are effectively forcing >> that, or even -fPIE, anyway. > Hm. 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. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers