pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Sandro Mani <manisandro@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc
Date: Fri, 10 Jul 2020 21:47:54 +0200
Message-ID: <033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com> (raw)
In-Reply-To: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com>
References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com>

On 2020-04-08 11:38, Sandro Mani wrote:
> 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:
> 
> -lz: is required by -lcrypto

I think the correct fix for that would be to add libssl to libpq's 
Requires.private.

> -liconv: is required by -lintl (though possibly depends on whether
> gettext was compiled with iconv support)

Yeah, in both of these cases it depends on what libssl or libintl 
variant you actually got.  It could be the OS one or a separately 
installed one, it could be one with or without pkg-config support.  I'm 
not sure what a robust solution would be.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (4+ messages)  latest in thread

Message-ID: <033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com>
Permalink:  ../033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com/
Also on:    postgresql.org/message-id/033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, manisandro@gmail.com
  Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc
  In-Reply-To: <033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com>
  References: <837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com> <033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com>

* 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