Add libpq's openssl dependencies to pkg-config file
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 10 Sep 2020 13:55:31 +0000 (15:55 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 10 Sep 2020 13:55:31 +0000 (15:55 +0200)
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

src/interfaces/libpq/Makefile

index d4919970f88868eeebcc38058f3f89ecd4bfc6fb..4ac5f4b340f502713f184e4b8ecd19f9c63892d5 100644 (file)
@@ -89,6 +89,8 @@ SHLIB_PREREQS = submake-libpgport
 
 SHLIB_EXPORTS = exports.txt
 
+PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
+
 all: all-lib
 
 # Shared library stuff