pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sandro Mani <manisandro@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc
Date: Wed, 01 Jul 2020 16:54:29 -0400
Message-ID: <751334.1593636869@sss.pgh.pa.us> (raw)
In-Reply-To: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com>
References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com>

Sandro Mani <manisandro@gmail.com> writes:
> The following patch, which we added to build mingw-postgresql on Fedora, 
> adds some missing libraries to Libs.private of libpq.pc, discovered when 
> attempting to statically link with libpq:

TBH, I think we should just reject this patch.  We do not encourage or
support statically linking libpq (and I thought that was against
distro-level policies in Fedora, as well --- such policies certainly
existed when I worked for Red Hat).  Moreover, the proposed patch
requires us to absorb assumptions about the dependencies of external
libraries that we really shouldn't be making.  I fear that it risks
causing new problems on other platforms, or at the very least
unnecessarily bloating libpq's dependency footprint.  In particular,
creating a hard dependency on -liconv regardless of build options
seems right out.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <751334.1593636869@sss.pgh.pa.us>
Permalink:  ../751334.1593636869@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/751334.1593636869@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, manisandro@gmail.com
  Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc
  In-Reply-To: <751334.1593636869@sss.pgh.pa.us>
  References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> <751334.1593636869@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox