Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles.

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
Date: 2017-10-11 15:49:11
Message-ID: 20171011154910.qwceculjehz5xyn3@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-10-11 15:58:58 Re: pgsql: Add port/strnlen support to libpq and ecpg Makefiles.
Previous Message Tom Lane 2017-10-11 15:28:16 pgsql: Add port/strnlen support to libpq and ecpg Makefiles.

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-10-11 15:50:21 Re: Discussion on missing optimizations
Previous Message Tom Lane 2017-10-11 15:28:16 pgsql: Add port/strnlen support to libpq and ecpg Makefiles.