mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
build: Fix test for libgdbm_compat when building statically
When building statically, -lgdbm_compat will not automatically pull in -lgdbm. So this needs to be specified explicitly in AC_CHECK_LIB and in the list of libraries passed to the linker. Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
1202207197
commit
2345aae984
@@ -45,13 +45,13 @@ AC_DEFUN([AC_PACKAGE_WANT_GDBM],
|
||||
fi
|
||||
|
||||
found="no"
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_open,found=true,found=false)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_fetch,,found=false)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_store,,found=false)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_close,,found="no")
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_open,found=true,found=false,-lgdbm)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_fetch,,found=false,-lgdbm)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_store,,found=false,-lgdbm)
|
||||
AC_CHECK_LIB(gdbm_compat,dbm_close,,found="no",-lgdbm)
|
||||
|
||||
if test $found = true ; then
|
||||
libgdbm="${libgdbm} -lgdbm_compat"
|
||||
libgdbm="${libgdbm} -lgdbm_compat -lgdbm"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user