s3: Fix bug 7844: Race in winbind
[Samba.git] / nsswitch / wscript_build
blob223e24d451b1b0b37b3d51b8d48d938b72f0e766
1 #!/usr/bin/env python
3 bld.SAMBA_LIBRARY('winbind-client',
4 source='wb_common.c',
5 deps='replace',
6 cflags='-DSOCKET_WRAPPER_DISABLE=1 -DWINBINDD_SOCKET_DIR=\"%s\"' % bld.env.WINBINDD_SOCKET_DIR,
7 private_library=True
11 bld.SAMBA_BINARY('nsstest',
12 source='nsstest.c',
13 deps='samba-util samba-hostconfig'
17 bld.SAMBA_BINARY('wbinfo',
18 source='wbinfo.c',
19 deps='samba-util LIBCLI_AUTH popt POPT_SAMBA winbind-client wbclient tevent UTIL_TEVENT LIBASYNC_REQ security ndr NDR_SECURITY'
22 bld.SAMBA_LIBRARY('nss_winbind',
23 source='../nsswitch/winbind_nss_linux.c',
24 deps='winbind-client',
25 realname='libnss_winbind.so.2',
26 vnum='2')
28 if bld.CONFIG_SET('HAVE_PAM_START'):
29 bld.SAMBA_LIBRARY('pamwinbind',
30 source='../nsswitch/pam_winbind.c',
31 deps='talloc wbclient winbind-client LIBINIPARSER pam intl',
32 cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
33 realname='pam_winbind.so',