blob: e350bafcd2ff8c09f7a38fbe1da15c31ef41ba49 [file] [log] [blame]
Andrew Geissler1fe918a2020-05-15 14:16:47 -05001When calculate value of ldblibdir, it checks whether the directory of
2$ldblibdir exists. If not, it assigns ldblibdir with ${libdir}/ldb. It is not
3suitable for cross compile. Fix it that only re-assign ldblibdir when its value
4is empty.
5
6Upstream-Status: Inappropriate [cross compile specific]
7
8Signed-off-by: Kai Kang <kai.kang@windriver.com>
9---
10 src/external/libldb.m4 | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/src/external/libldb.m4 b/src/external/libldb.m4
14index c400add..5e5f06d 100644
15--- a/src/external/libldb.m4
16+++ b/src/external/libldb.m4
17@@ -19,7 +19,7 @@ if test x"$with_ldb_lib_dir" != x; then
18 ldblibdir=$with_ldb_lib_dir
19 else
20 ldblibdir="`$PKG_CONFIG --variable=modulesdir ldb`"
21- if ! test -d $ldblibdir; then
22+ if test -z $ldblibdir; then
23 ldblibdir="${libdir}/ldb"
24 fi
25 fi