From: Tom Lane Date: Sat, 20 Sep 2003 21:14:57 +0000 (+0000) Subject: Attaching -lpq to LDFLAGS doesn't work, because the generated command X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=8d2c3e4b12ca03d648caa81a4863530828161daf;p=users%2Fbernd%2Fpostgres.git Attaching -lpq to LDFLAGS doesn't work, because the generated command puts that before the .c file name. --- diff --git a/src/test/examples/Makefile b/src/test/examples/Makefile index 8589b0a95f..0326d42911 100644 --- a/src/test/examples/Makefile +++ b/src/test/examples/Makefile @@ -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