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:12:56 +0200
commit7a27892750e966998381e6c34cdfec30ac5e3906 (patch)
tree70d807e41c83f39c5bc587a62382c8b58754af18 /src
parent9f9489aa2eefeaf4a6517b0b14f8f22938c2e3f3 (diff)
downloadpostgresql-7a27892750e966998381e6c34cdfec30ac5e3906.tar.gz
postgresql-7a27892750e966998381e6c34cdfec30ac5e3906.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 0c4e55b6ad3..43682574b23 100644
--- a/src/interfaces/libpq/Makefile
+++ b/src/interfaces/libpq/Makefile
@@ -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