0001-libpq-Fix-pkg-config-without-OpenSSL.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 465ab24296c27502c81c8c197725cba728b9b057 Mon Sep 17 00:00:00 2001
  2. From: Peter Eisentraut <peter@eisentraut.org>
  3. Date: Fri, 1 Apr 2022 17:12:56 +0200
  4. Subject: [PATCH] libpq: Fix pkg-config without OpenSSL
  5. Do not add OpenSSL dependencies to libpq pkg-config file if OpenSSL is
  6. not enabled. Oversight in beff361bc1edc24ee5f8b2073a1e5e4c92ea66eb.
  7. Author: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  8. Discussion: https://www.postgresql.org/message-id/flat/20220331163759.32665-1-fontaine.fabrice%40gmail.com
  9. [Retrieved from:
  10. https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=465ab24296c27502c81c8c197725cba728b9b057]
  11. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  12. ---
  13. src/interfaces/libpq/Makefile | 2 ++
  14. 1 file changed, 2 insertions(+)
  15. diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile
  16. index 89bf5e0126..b5fd72a4ac 100644
  17. --- a/src/interfaces/libpq/Makefile
  18. +++ b/src/interfaces/libpq/Makefile
  19. @@ -95,7 +95,9 @@ SHLIB_PREREQS = submake-libpgport
  20. SHLIB_EXPORTS = exports.txt
  21. +ifeq ($(with_ssl),openssl)
  22. PKG_CONFIG_REQUIRES_PRIVATE = libssl libcrypto
  23. +endif
  24. all: all-lib libpq-refs-stamp
  25. --
  26. 2.30.2