Re: Fix pkg-config file for static linking

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Filip Gospodinov <f@gospodinov.ch>, pgsql-hackers@lists.postgresql.org
Date: 2021-07-06T13:13:42Z
Lists: pgsql-hackers
On 21.06.21 15:47, Filip Gospodinov wrote:
> -PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
> +PKG_CONFIG_REQUIRES_PRIVATE = libpgcommon libpgport libssl libcrypto

This doesn't work.

This patch adds libpgcommon and libpgport to Requires.private.  But they 
are not pkg-config names but library names, so they should be added to 
Libs.private.



Commits

  1. Fix pkg-config files for static linking

  2. Fix corner-case uninitialized-variable issues in plpgsql.

  3. Add libpq's openssl dependencies to pkg-config file