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

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

src/interfaces/libpq/Makefile

index 0c4e55b6ad34d934c843f85db800c37c83207659..43682574b2341597ed695009d6c72b3db0551b75 100644 (file)
@@ -94,7 +94,9 @@ SHLIB_PREREQS = submake-libpgport
 
 SHLIB_EXPORTS = exports.txt
 
+ifeq ($(with_ssl),openssl)
 PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
+endif
 
 all: all-lib