summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4')
-rw-r--r--m4/db.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/db.m4 b/m4/db.m4
index 61bd34a6..96f1f717 100644
--- a/m4/db.m4
+++ b/m4/db.m4
@@ -74,7 +74,7 @@ db_libver=${db_ver_maj}.${db_ver_min}
dnl make sure the lib is available
dnl use true so libdb won't be added to LIBS
save_ldflags="$LDFLAGS"
-LDFLAGS="$db_lib"
+LDFLAGS="$db_lib $LDFLAGS"
AC_CHECK_LIB([db-$db_libver], [db_create], [true],
[AC_MSG_ERROR([$db_incdir/db.h is version $db_libver but libdb-$db_libver not found])],
[$LIBNSL])