diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-31 18:05:29 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:21 +1000 |
commit | aceb14f611e567a53ce582f4f25f08159787b3d4 (patch) | |
tree | 2af346f3684829fab0271f156d5d89068799917a /source4 | |
parent | 9ac8899d87c3eff149a0ba582fb70b853710e826 (diff) | |
download | samba-aceb14f611e567a53ce582f4f25f08159787b3d4.tar.gz samba-aceb14f611e567a53ce582f4f25f08159787b3d4.tar.bz2 samba-aceb14f611e567a53ce582f4f25f08159787b3d4.zip |
s4-waf: use cflags for LDB_MODULESDIR
this prevents rebuilds when it changes
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/wscript | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 18a9f4c271..de70fa454a 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -9,6 +9,7 @@ import sys sys.path.insert(0, srcdir+"/buildtools/wafsamba") import wafsamba + LIBTDB_DIR= srcdir + '/lib/tdb' LIBTEVENT_DIR= srcdir + '/lib/tevent' LIBPOPT_DIR= srcdir + '/lib/popt' @@ -141,12 +142,14 @@ def build(bld): ldb_deps += ' LDBSAMBA POPT_CREDENTIALS POPT_SAMBA LIBCMDLINE_CREDENTIALS gensec' if not bld.CONFIG_SET('USING_SYSTEM_LDB'): + modules_dir = bld.EXPAND_VARIABLES('${LDB_MODULESDIR}') bld.SAMBA_LIBRARY('ldb', COMMON_SRC + ' ' + LDB_MAP_SRC, deps=ldb_deps, includes='include', public_headers='include/ldb.h include/ldb_errors.h', pc_files='ldb.pc', + cflags='-DLDB_MODULESDIR=\"%s\"' % modules_dir, vnum=VERSION) bld.SAMBA_SUBSYSTEM('LIBLDB_CMDLINE', |