summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/nbt/wscript_build8
-rw-r--r--source3/wscript_build7
2 files changed, 10 insertions, 5 deletions
diff --git a/libcli/nbt/wscript_build b/libcli/nbt/wscript_build
index 7e3047079a..6227482b58 100644
--- a/libcli/nbt/wscript_build
+++ b/libcli/nbt/wscript_build
@@ -6,11 +6,15 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
autoproto='nbtname.h'
)
+bld.SAMBA_SUBSYSTEM('lmhosts',
+ source='lmhosts.c',
+ deps='replace')
+
if bld.env._SAMBA_BUILD_ == 4:
bld.SAMBA_LIBRARY('cli-nbt',
- source='lmhosts.c nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c dns_hosts_file.c',
- public_deps='ndr NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket samba-util',
+ source='nbtsocket.c namequery.c nameregister.c namerefresh.c namerelease.c dns_hosts_file.c',
+ public_deps='ndr NDR_NBT tevent UTIL_TEVENT NDR_SECURITY samba_socket samba-util lmhosts',
private_library=True
)
diff --git a/source3/wscript_build b/source3/wscript_build
index c7d84a20f7..1c8c2a15e8 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -119,7 +119,7 @@ SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
passdb/machine_sid.c'''
LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
- libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
+ libsmb/namequery.c libsmb/conncache.c
libads/dns.c libads/sitename_cache.c'''
DCE_RPC_ERR_SRC = '../librpc/rpc/dcerpc_error.c'
@@ -903,8 +903,9 @@ bld.SAMBA3_SUBSYSTEM('LIBEVENTLOG',
vars=locals())
bld.SAMBA3_SUBSYSTEM('LIBNMB',
- source=LIBNMB_SRC,
- vars=locals())
+ source=LIBNMB_SRC,
+ deps='lmhosts',
+ vars=locals())
bld.SAMBA3_SUBSYSTEM('LIBNBT',
source='',