libpq: Fix pkg-config without OpenSSL
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 1 Apr 2022 15:12:56 +0000 (17:12 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 1 Apr 2022 15:15:24 +0000 (17:15 +0200)
Do not add OpenSSL dependencies to libpq pkg-config file if OpenSSL is
not enabled.  Oversight in beff361bc1edc24ee5f8b2073a1e5e4c92ea66eb.

Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/20220331163759.32665-1-fontaine.fabrice%40gmail.com

src/interfaces/libpq/Makefile

index 89bf5e0126008e1e5a18e522798f1892af4c008c..b5fd72a4acf68975e93cb598a968e254d7b8d3d1 100644 (file)
@@ -95,7 +95,9 @@ SHLIB_PREREQS = submake-libpgport
 
 SHLIB_EXPORTS = exports.txt
 
+ifeq ($(with_ssl),openssl)
 PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
+endif
 
 all: all-lib libpq-refs-stamp