From 4855d7ebe450bf14920d935c4fcf7ba49bb98a93 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 13 Oct 2004 10:20:04 +0000
Subject: [PATCH] Allow compiles for Cygwin /contrib modules.

Reini Urban
---
 src/Makefile.shlib | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.shlib b/src/Makefile.shlib
index dcc702f5a71..ac263bb8605 100644
--- a/src/Makefile.shlib
+++ b/src/Makefile.shlib
@@ -6,7 +6,7 @@
 # Copyright (c) 1998, Regents of the University of California
 #
 # IDENTIFICATION
-#    $PostgreSQL: pgsql/src/Makefile.shlib,v 1.83 2004/10/13 09:51:47 momjian Exp $
+#    $PostgreSQL: pgsql/src/Makefile.shlib,v 1.84 2004/10/13 10:20:04 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -216,6 +216,8 @@ endif
 
 ifeq ($(PORTNAME), cygwin)
   shlib			= $(NAME)$(DLSUFFIX)
+  # needed for /contrib modules, not sure why
+  SHLIB_LINK		+= -lpgport
 endif
 
 ifeq ($(PORTNAME), win32)
-- 
GitLab