summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2022-04-01 15:12:56 +0000
committerPeter Eisentraut2022-04-01 15:15:24 +0000
commit465ab24296c27502c81c8c197725cba728b9b057 (patch)
tree75b5e1c31331b39e323b6452551d51924297378e
parent479b69a4a551465614042bba00694001273d702f (diff)
libpq: Fix pkg-config without OpenSSL
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
-rw-r--r--src/interfaces/libpq/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile
index 89bf5e0126..b5fd72a4ac 100644
--- a/src/interfaces/libpq/Makefile
+++ b/src/interfaces/libpq/Makefile
@@ -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