From: Peter Eisentraut Date: Fri, 1 Apr 2022 15:12:56 +0000 (+0200) Subject: libpq: Fix pkg-config without OpenSSL X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=465ab24296c27502c81c8c197725cba728b9b057;p=users%2Frhaas%2Fpostgres.git 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 Discussion: https://www.postgresql.org/message-id/flat/20220331163759.32665-1-fontaine.fabrice%40gmail.com --- 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