Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2JGH-0003Cz-8k for pgsql-committers@arkaria.postgresql.org; Wed, 11 Oct 2017 15:49:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e2JGG-0001Ya-Rj for pgsql-committers@arkaria.postgresql.org; Wed, 11 Oct 2017 15:49:32 +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 1e2JG0-0000eQ-Lu for pgsql-committers@postgresql.org; Wed, 11 Oct 2017 15:49:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e2JFx-0001Be-O5 for pgsql-committers@postgresql.org; Wed, 11 Oct 2017 15:49:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3F4652138C; Wed, 11 Oct 2017 11:49:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 11 Oct 2017 11:49:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=BGbHhM0DQHr6PDs9hXcs9RZixsXqQ GfbuOXHhBqxfXs=; b=g/bwmL6igmJlGVg5OH2CbKj/YIDdlF0AXO5hrTubrCvOW GObHB776ULEA7KjEky5kcjfcgHMGRZXZVFzVviPJ/r01BT+bXMvr13i0gUMQIsH7 W/RCmJuaFksbZ8bHyxtWFtB9/3hhriVxUBqGkp160G2ageMsrDcL1FzKS77AccOY XWdE0ThpiI+UGbeMPyVUXSYbXBmiYYUggH5iJbf8Z0nyXxyZuEetdxMhTj6MG42h zQkl9HDO/+yqNIuNjPDacbLmAkvJHLMFq0iU+Wk+n4BluKoavi3s2vvE4t/F5DGh F+SPiRSxtgjwBGWshC0F8ppARnUF7z4HFR/2Mt/ug== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id F1CA17E660; Wed, 11 Oct 2017 11:49:11 -0400 (EDT) Date: Wed, 11 Oct 2017 08:49:11 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles. Message-ID: <20171011154910.qwceculjehz5xyn3@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On 2017-10-11 15:28:16 +0000, Tom Lane wrote: > Add port/strnlen support to libpq and ecpg Makefiles. > > In the wake of fffd651e8, any makefile that pulls in snprintf.c > from src/port/ needs to be prepared to pull in strnlen.c as well. > Per buildfarm. Thanks. > Modified Files > -------------- > src/interfaces/ecpg/compatlib/.gitignore | 1 + > src/interfaces/ecpg/compatlib/Makefile | 6 +++--- > src/interfaces/ecpg/ecpglib/.gitignore | 1 + > src/interfaces/ecpg/ecpglib/Makefile | 7 ++++--- > src/interfaces/ecpg/pgtypeslib/.gitignore | 1 + > src/interfaces/ecpg/pgtypeslib/Makefile | 7 ++++--- > src/interfaces/libpq/.gitignore | 1 + > src/interfaces/libpq/Makefile | 6 +++--- > 8 files changed, 18 insertions(+), 12 deletions(-) Phew. This is a bit a sad state of affairs. The separate libpq logic for getting pgport is presumably because of possibly different threading flags and then because of the appropriate compiler/linker flags for a shared library? Wonder if we shouldn't have variants of libpqport that support threading and shared libraries, but built centrally. libpgport{-shared}{-mt} or such. Formally speaking it's not quite right that we don't use threading aware flags in pgbench for example. Some gcc platforms at least pretty much assume everything is built with -pthread e.g. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers