diff options
author | jlam <jlam@pkgsrc.org> | 2004-11-17 15:12:08 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-11-17 15:12:08 +0000 |
commit | 81e4749b3ffec279cf30f64e9336b45922dd7fde (patch) | |
tree | b0f6c7a9d1913d88d2e8db19ec567a1dabb8ce1e /mk | |
parent | 7741cf738a35691508c1057a9bddd8b54c2b8bfa (diff) | |
download | pkgsrc-81e4749b3ffec279cf30f64e9336b45922dd7fde.tar.gz |
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 (limited to 'mk')
-rw-r--r-- | mk/db1.builtin.mk | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/db1.builtin.mk b/mk/db1.builtin.mk index 7198479e732..323ab04e053 100644 --- a/mk/db1.builtin.mk +++ b/mk/db1.builtin.mk @@ -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 @@ BUILDLINK_INCDIRS.db1= include/db1 . 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} |