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-09-02T11:07:10Z
Lists: pgsql-hackers

Attachments

On 20.07.21 22:04, Filip Gospodinov wrote:
> Anyway, this issue is orthogonal to my original patch. I'm proposing to 
> hardcode -lpgcommon and -lpgport in Libs.private instead. Patch is 
> attached.

Makes sense.  I think we could do it without hardcoding those library 
names, as in the attached patch.  But it comes out to the same result 
AFAICT.

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