aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-04-01 17:12:56 +0200
committerPeter Eisentraut <peter@eisentraut.org>2022-04-01 17:15:24 +0200
commit465ab24296c27502c81c8c197725cba728b9b057 (patch)
tree75b5e1c31331b39e323b6452551d51924297378e /src
parent479b69a4a551465614042bba00694001273d702f (diff)
downloadpostgresql-465ab24296c27502c81c8c197725cba728b9b057.tar.gz
postgresql-465ab24296c27502c81c8c197725cba728b9b057.zip
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
Diffstat (limited to 'src')
-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 89bf5e01260..b5fd72a4acf 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