Skip to content

Commit

Permalink
Add libpq's openssl dependencies to pkg-config file
Browse files Browse the repository at this point in the history
Add libssl and libcrypto to libpq.pc's Requires.private.  This allows
static linking to work if those libssl or libcrypto themselves have
dependencies in their *.private fields, such as -lz in some cases.

Reported-by: Sandro Mani <manisandro@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/837d1dcf-2fca-ee6e-0d7e-6bce1a1bac75@gmail.com
  • Loading branch information
petere committed Sep 10, 2020
1 parent 4fff515 commit beff361
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/libpq/Makefile
Expand Up @@ -89,6 +89,8 @@ SHLIB_PREREQS = submake-libpgport

SHLIB_EXPORTS = exports.txt

PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto

all: all-lib

# Shared library stuff
Expand Down

0 comments on commit beff361

Please sign in to comment.