diff options
author | grant <grant@pkgsrc.org> | 2003-12-04 04:14:05 +0000 |
---|---|---|
committer | grant <grant@pkgsrc.org> | 2003-12-04 04:14:05 +0000 |
commit | 3edb3e3577e02b294aeef108f0861a85bb262a1c (patch) | |
tree | 8772ff8a1776a5d9410bbdc442263fa9608f5134 /databases/db | |
parent | 9209ad42976a44cbd85c9109d107e9bae446b91d (diff) | |
download | pkgsrc-3edb3e3577e02b294aeef108f0861a85bb262a1c.tar.gz |
provide BUILDLINK_LDFLAGS.db and BUILDLINK_LIBS.db.
Diffstat (limited to 'databases/db')
-rw-r--r-- | databases/db/buildlink2.mk | 8 |
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} |