summaryrefslogtreecommitdiff
path: root/databases/db
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-12-04 04:14:05 +0000
committergrant <grant@pkgsrc.org>2003-12-04 04:14:05 +0000
commit736189195a4c0f7d99ce101a5bd9ed2b3f4faa0a (patch)
tree8772ff8a1776a5d9410bbdc442263fa9608f5134 /databases/db
parent388b637afcdf1b0a257631fc35ca51236500bdbb (diff)
downloadpkgsrc-736189195a4c0f7d99ce101a5bd9ed2b3f4faa0a.tar.gz
provide BUILDLINK_LDFLAGS.db and BUILDLINK_LIBS.db.
Diffstat (limited to 'databases/db')
-rw-r--r--databases/db/buildlink2.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/db/buildlink2.mk b/databases/db/buildlink2.mk
index d5df50cbc53..c713b369a4d 100644
--- a/databases/db/buildlink2.mk
+++ b/databases/db/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.7 2002/12/29 00:43:52 seb Exp $
+# $NetBSD: buildlink2.mk,v 1.8 2003/12/04 04:14:05 grant Exp $
.if !defined(DB_BUILDLINK2_MK)
DB_BUILDLINK2_MK= # defined
@@ -14,12 +14,16 @@ BUILDLINK_PREFIX.db= /usr
BUILDLINK_FILES.db= include/db.h
BUILDLINK_FILES.db+= include/mpool.h
BUILDLINK_CPPFLAGS.db= # empty
+BUILDLINK_LDFLAGS.db= # empty
+BUILDLINK_LIBS.db= # empty
_NEED_DB2= NO
. elif exists(/usr/include/db1/db.h)
# Linux
BUILDLINK_PREFIX.db= /usr
BUILDLINK_FILES.db= include/db1/*
BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db1
+BUILDLINK_LDFLAGS.db= # empty
+BUILDLINK_LIBS.db= -ldb1
BUILDLINK_TRANSFORM+= l:db:db1
_NEED_DB2= NO
. endif
@@ -32,6 +36,8 @@ BUILDLINK_PREFIX.db_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.db= include/db2/*
BUILDLINK_FILES.db+= lib/libdb2.*
BUILDLINK_CPPFLAGS.db= -I${BUILDLINK_PREFIX.db}/include/db2
+BUILDLINK_LDFLAGS.db= -L${BUILDLINK_PREFIX.db}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db}/lib
+BUILDLINK_LIBS.db= -ldb2
BUILDLINK_TRANSFORM+= l:db:db2
.endif
CPPFLAGS+= ${BUILDLINK_CPPFLAGS.db}