summaryrefslogtreecommitdiff
path: root/databases/qdbm/patches/patch-ae
blob: a3b250dbf27ace4de545c95904f4980f60a7e8c5 (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
30
31
32
$NetBSD: patch-ae,v 1.4 2007/04/04 12:48:11 obache Exp $

--- plus/Makefile.in.orig	2007-02-21 17:47:46.000000000 +0900
+++ plus/Makefile.in
@@ -34,21 +34,21 @@ exec_prefix = @exec_prefix@
 MYHEADDIR = @includedir@
 MYLIBDIR = @libdir@
 MYBINDIR = @bindir@
-MYDATADIR = @datadir@/$(PACKAGE)/plus
+MYDATADIR = @datadir@/doc/$(PACKAGE)/plus
 DESTDIR =
 
 # Building binaries
 CXX = @CXX@
-CPPFLAGS = -I$(srcdir) -I$(srcdir)/.. -I$(MYHEADDIR) -I$(HOME)/include -I/usr/local/include \
+CPPFLAGS = -I$(srcdir) -I$(srcdir)/.. -I$(MYHEADDIR) \
   @MYDEFS@ -D_XOPEN_SOURCE_EXTENDED=1 -D_GNU_SOURCE=1 -D__EXTENSIONS__=1 -D_HPUX_SOURCE=1 \
   -D_POSIX_MAPPED_FILES=1 -D_POSIX_SYNCHRONIZED_IO=1 \
   -DPIC=1 -D_THREAD_SAFE=1 -D_REENTRANT=1 -DNDEBUG
-CXXFLAGS = -Wall -ansi -pedantic -fsigned-char -fPIC -O2 -fno-strict-aliasing @MYOPTS@
+CXXFLAGS = ${PTHREAD_CFLAGS} -Wall -ansi -pedantic -fsigned-char -fPIC -O2 -fno-strict-aliasing @MYOPTS@
 LD = @LD@
 LIBS = -lqdbm @LIBS@
-LIBLDFLAGS = -L. -L$(srcdir)/.. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib $(LIBS)
-LDFLAGS = -L. -L$(srcdir)/.. -L$(MYLIBDIR) -L$(HOME)/lib -L/usr/local/lib -lxqdbm $(LIBS)
-LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib
+LIBLDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) $(LIBS)
+LDFLAGS = @LDFLAGS@ -L. -L$(srcdir)/.. -L$(MYLIBDIR) -lxqdbm $(LIBS)
+LDENV = LD_RUN_PATH=/lib:/usr/lib:$(MYLIBDIR)
 AR = @AR@
 ARFLAGS = rcsv
 RUNENV = LD_LIBRARY_PATH=.:..:/lib:/usr/lib:$(MYLIBDIR):$(HOME)/lib:/usr/local/lib