From 0d45d97540df3b826c62bdd8e1ab29cde1f7f758 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 27 Oct 2010 14:25:06 +1100 Subject: s4-ldb: create a private library ldb-cmdline this prevents duplicate linking of the cmdline support code --- source4/lib/ldb/wscript | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4/lib/ldb') diff --git a/source4/lib/ldb/wscript b/source4/lib/ldb/wscript index 6b5f0c3e1b..55eb6a871d 100644 --- a/source4/lib/ldb/wscript +++ b/source4/lib/ldb/wscript @@ -219,17 +219,18 @@ def build(bld): else: extra_cmdline_deps = '' - bld.SAMBA_SUBSYSTEM('LIBLDB_CMDLINE', - 'tools/ldbutil.c tools/cmdline.c', - 'ldb dl popt' + extra_cmdline_deps) + bld.SAMBA_LIBRARY('ldb-cmdline', + source='tools/ldbutil.c tools/cmdline.c', + deps='ldb dl popt' + extra_cmdline_deps, + private_library=True) LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename' for t in LDB_TOOLS.split(): - bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='LIBLDB_CMDLINE', + bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline', manpages='man/%s.1' % t) # ldbtest doesn't get installed - bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='LIBLDB_CMDLINE', + bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='ldb-cmdline', install=False) -- cgit