Re: [Patch] Add missing libraries to Libs.private of libpq.pc

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Sandro Mani <manisandro(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [Patch] Add missing libraries to Libs.private of libpq.pc
Date: 2020-07-10 19:47:54
Message-ID: 033443ae-cccc-ad2f-51f6-8b5c25cc2d2c@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Steele 2020-07-10 19:56:44 Re: Remove Deprecated Exclusive Backup Mode
Previous Message Jeff Davis 2020-07-10 18:34:44 Re: Default setting for enable_hashagg_disk