summaryrefslogtreecommitdiff
path: root/databases/db4
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-02-16 15:57:06 +0000
committerobache <obache@pkgsrc.org>2008-02-16 15:57:06 +0000
commit2f7e0c453bec09958d33a387f9d19b38e842fab9 (patch)
treea06b4dae4372a2a743694559612209793e95408d /databases/db4
parent551fafb007093d15421c0669c556c89d35b52971 (diff)
downloadpkgsrc-2f7e0c453bec09958d33a387f9d19b38e842fab9.tar.gz
DB-1.85 compatability was enabled long long ago.
At least, all db4>=4.6.21 have it. Add same trick as db2/db3. Fixed link problem that expect db-1.85 compat library is -ldb, like a PR 37647.
Diffstat (limited to 'databases/db4')
-rw-r--r--databases/db4/buildlink3.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/databases/db4/buildlink3.mk b/databases/db4/buildlink3.mk
index 1e6fe5e5d04..209164417c9 100644
--- a/databases/db4/buildlink3.mk
+++ b/databases/db4/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.32 2008/01/10 21:55:52 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.33 2008/02/16 15:57:06 obache Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
DB4_BUILDLINK3_MK:= ${DB4_BUILDLINK3_MK}+
@@ -18,6 +18,12 @@ BUILDLINK_INCDIRS.db4?= include/db4
BUILDLINK_LDADD.db4= -ldb4
BUILDLINK_TRANSFORM+= l:db-4:db4
+. include "../../mk/bsd.fast.prefs.mk"
+. if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
+BUILDLINK_LIBS.db4= ${BUILDLINK_LDADD.db4}
+BUILDLINK_TRANSFORM+= l:db:db4
+. endif
+
. include "../../mk/compiler.mk"
. if empty(PKGSRC_COMPILER:Mgcc)
PTHREAD_OPTS+= native