]> granicus.if.org Git - postgresql/commitdiff
Attaching -lpq to LDFLAGS doesn't work, because the generated command
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Sep 2003 21:14:57 +0000 (21:14 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Sep 2003 21:14:57 +0000 (21:14 +0000)
puts that before the .c file name.

src/test/examples/Makefile

index 8589b0a95fed74c3fafa6ccb5cd2544ae1392b81..0326d429112f5268e0e531a6c4efb5ae0dcdd9e5 100644 (file)
@@ -7,7 +7,7 @@ top_builddir = ../../..
 include $(top_builddir)/src/Makefile.global
 
 override CPPFLAGS := -I$(libpq_srcdir) $(CPPFLAGS)
-LDFLAGS += $(libpq)
+override LDLIBS := $(libpq) -lpgport $(LDLIBS)
 
 
 PROGS = testlibpq testlibpq2 testlibpq3 testlibpq4 testlo