pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk If we don't need to link against -ldb or -ldb1 (bec...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d73f4d7c3289
branches: trunk
changeset: 483686:d73f4d7c3289
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Nov 17 15:12:08 2004 +0000
description:
If we don't need to link against -ldb or -ldb1 (because the DB functions
are a part of libc), then remove "-ldb" altogether. This should fix
GNU configure scripts that assume you need to at least link against
"-ldb".
diffstat:
mk/db1.builtin.mk | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (24 lines):
diff -r a9cd1b76310f -r d73f4d7c3289 mk/db1.builtin.mk
--- a/mk/db1.builtin.mk Wed Nov 17 14:23:54 2004 +0000
+++ b/mk/db1.builtin.mk Wed Nov 17 15:12:08 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: db1.builtin.mk,v 1.4 2004/11/15 18:23:40 jlam Exp $
+# $NetBSD: db1.builtin.mk,v 1.5 2004/11/17 15:12:08 jlam Exp $
.for _lib_ in db db1
. if !defined(_BLNK_LIB_FOUND.${_lib_})
@@ -63,10 +63,12 @@
. endif
. if !empty(_BLNK_LIB_FOUND.db:M[yY][eE][sS])
BUILDLINK_LDADD.db1= -ldb
-. endif
-. if !empty(_BLNK_LIB_FOUND.db1:M[yY][eE][sS])
+. elif !empty(_BLNK_LIB_FOUND.db1:M[yY][eE][sS])
BUILDLINK_LDADD.db1= -ldb1
BUILDLINK_TRANSFORM+= l:db:db1
+. else
+BUILDLINK_LDADD.db1= # empty
+BUILDLINK_TRANSFORM+= rm:-ldb
. endif
BUILDLINK_LIBS.db1= ${BUILDLINK_LDADD.db1}
Home |
Main Index |
Thread Index |
Old Index