diff options
author | cube <cube@pkgsrc.org> | 2005-08-11 20:25:20 +0000 |
---|---|---|
committer | cube <cube@pkgsrc.org> | 2005-08-11 20:25:20 +0000 |
commit | bf27b0ecdf773eac29fa65f0dad5b863167507b3 (patch) | |
tree | 13f75f0069b77c891a4b5e42a98892cd2cf42db7 /mk/db1.builtin.mk | |
parent | 4ba3fbfe8d683eae7043d40fdc1de69820b802a2 (diff) | |
download | pkgsrc-bf27b0ecdf773eac29fa65f0dad5b863167507b3.tar.gz |
Change the order of libraries looked for, and start with libdb1 instead of
libdb. A (obviously braindead) system might ship with a correct libdb1 and
a frivolous libdb. I'm speaking of RedHat, of course.
But anyway, it makes more sense, libdb1 just can't be anything but a db1
library.
OK'd by jlam@.
Diffstat (limited to 'mk/db1.builtin.mk')
-rw-r--r-- | mk/db1.builtin.mk | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mk/db1.builtin.mk b/mk/db1.builtin.mk index 048e07244d2..f695258038c 100644 --- a/mk/db1.builtin.mk +++ b/mk/db1.builtin.mk @@ -1,10 +1,10 @@ -# $NetBSD: db1.builtin.mk,v 1.13 2005/06/30 12:52:12 adam Exp $ +# $NetBSD: db1.builtin.mk,v 1.14 2005/08/11 20:25:20 cube Exp $ BUILTIN_PKG:= db1 -BUILTIN_FIND_LIBS:= db db1 +BUILTIN_FIND_LIBS:= db1 db BUILTIN_FIND_FILES_VAR:= H_DB -BUILTIN_FIND_FILES.H_DB= /usr/include/db.h /usr/include/db1/db.h +BUILTIN_FIND_FILES.H_DB= /usr/include/db1/db.h /usr/include/db.h # # The builtin Berkeley database library must support hash version 2 or # else it doesn't support db-1.85 databases. @@ -68,11 +68,11 @@ BUILDLINK_PREFIX.db1= /usr . if exists(${H_DB}) BUILDLINK_INCDIRS.db1?= ${H_DB:H:S/^${BUILDLINK_PREFIX.db1}\///} . endif -. if !empty(BUILTIN_LIB_FOUND.db:M[yY][eE][sS]) -BUILDLINK_LDADD.db1= -ldb -. elif !empty(BUILTIN_LIB_FOUND.db1:M[yY][eE][sS]) +. if !empty(BUILTIN_LIB_FOUND.db1:M[yY][eE][sS]) BUILDLINK_LDADD.db1= -ldb1 BUILDLINK_TRANSFORM+= l:db:db1 +. elif !empty(BUILTIN_LIB_FOUND.db:M[yY][eE][sS]) +BUILDLINK_LDADD.db1= -ldb . else BUILDLINK_LDADD.db1= # empty . endif |