blob: 5a4bccd5eba309ae771510852b1ef88cbda90609 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$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
|