From b028f55880f5beedb9acb440d4ea53b54345870b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Nov 2010 14:26:04 +1100 Subject: s4-test: if using a system version of ldb, override the ldb modules path Autobuild-User: Andrew Tridgell Autobuild-Date: Wed Nov 3 04:13:22 UTC 2010 on sn-devel-104 --- source4/selftest/wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/selftest/wscript') diff --git a/source4/selftest/wscript b/source4/selftest/wscript index 2f4e4362e0..2273def930 100644 --- a/source4/selftest/wscript +++ b/source4/selftest/wscript @@ -141,6 +141,11 @@ def cmd_testonly(opt): # this is needed for systems without rpath, or with rpath disabled ADD_LD_LIBRARY_PATH('bin/shared') + # if we are using a system version of ldb then we need to tell it to + # load modules from our modules path + if env.USING_SYSTEM_LDB: + os.environ['LDB_MODULES_PATH'] = 'bin/modules/ldb' + # tell build system where to find config.h os.environ['CONFIG_H'] = 'bin/default/source4/include/config.h' -- cgit