From 6bb60ca81df03f935f12f625674dd10ea21bc7f4 Mon Sep 17 00:00:00 2001
From: bellenot <bertrand.bellenot@cern.ch>
Date: Fri, 3 May 2013 12:26:43 +0200
Subject: [PATCH] Add missing dependencies for PostgreSQL on cygwin/gcc. Thanks
 to Angelo Graziosi for the feedback

---
 configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure b/configure
index 04b7d0d0207..44b62a44861 100755
--- a/configure
+++ b/configure
@@ -3177,6 +3177,10 @@ if test ! "x$enable_pgsql" = "xno"; then
 
     if test "x$pgsqlincdir" = "x" || test "x$pgsqllib" = "x"; then
         enable_pgsql="no"
+    else
+        if test "x$arch" = xwin32gcc; then
+            pgsqllib="$pgsqllib -lssl -lldap -lcrypto -lintl"
+        fi
     fi
 fi
 check_explicit "$enable_pgsql" "$enable_pgsql_explicit" \
-- 
GitLab