diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 6ee0ceb281a2c6cecda2b808e8efcc9df49459d9..7a56b9ba461ec184d6db410dabee5f3bc7be09ad 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