From de2c66539eaabdcee94ae4f243ec6402058b1f4c Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Wed, 2 Jun 2004 21:05:52 +0000
Subject: [PATCH] Move -lpgport to the beginning of the library list for win32
 linking.

---
 src/Makefile.global.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 6ee0ceb281a..7a56b9ba461 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -1,5 +1,5 @@
 # -*-makefile-*-
-# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.188 2004/05/23 15:24:32 tgl Exp $
+# $PostgreSQL: pgsql/src/Makefile.global.in,v 1.189 2004/06/02 21:05:52 momjian Exp $
 
 #------------------------------------------------------------------------------
 # All PostgreSQL makefiles include this file and use the variables it sets,
@@ -343,7 +343,7 @@ endif
 LIBOBJS = @LIBOBJS@ exec.o noblock.o path.o pipe.o pgsleep.o pgstrcasecmp.o sprompt.o thread.o
 
 ifneq (,$(LIBOBJS))
-LIBS += -lpgport
+LIBS := -lpgport $(LIBS)
 LDFLAGS := -L$(top_builddir)/src/port $(LDFLAGS)
 endif
 
-- 
GitLab