Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqjkY-0001Pq-V8 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 20:54:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqjkX-0006ud-S6 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 20:54:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqjkX-0006uW-LR for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2020 20:54:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqjkV-0001kQ-H0 for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2020 20:54:33 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 061KsT4J751335; Wed, 1 Jul 2020 16:54:29 -0400 From: Tom Lane To: Sandro Mani cc: PostgreSQL Hackers Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc In-reply-to: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> Comments: In-reply-to Sandro Mani message dated "Wed, 08 Apr 2020 11:38:50 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <751333.1593636869.1@sss.pgh.pa.us> Date: Wed, 01 Jul 2020 16:54:29 -0400 Message-ID: <751334.1593636869@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sandro Mani 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