$NetBSD: patch-al,v 1.2 1999/09/20 23:38:50 jlam Exp $

--- ./interfaces/libpq++/Makefile.in.orig	Tue Sep  7 14:11:35 1999
+++ ./interfaces/libpq++/Makefile.in	Mon Sep 20 01:21:40 1999
@@ -17,8 +17,6 @@
 SRCDIR= @top_srcdir@
 include $(SRCDIR)/Makefile.global
 
-CXX=@CXX@
-
 SRCHEADERDIR = $(SRCDIR)/include
 LIBPQHEADERDIR = $(SRCHEADERDIR)/libpq
 
@@ -42,10 +40,13 @@
 
 OBJS = pgconnection.o pgdatabase.o pgtransdb.o pgcursordb.o pglobject.o 
 
+# Signify that we're building a C++ library.
+CXXLIB= true
+
 ifeq ($(PORTNAME), win)
-SHLIB_LINK+= --driver-name g++ -L../libpq -lpq
+SHLIB_LINK+= --driver-name g++ $(LIBPQ)
 else
-SHLIB_LINK= -L../libpq -lpq
+SHLIB_LINK= $(LIBPQ)
 endif
 
 # For CC on IRIX, must use CC as linker/archiver of C++ libraries
