mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Lots of samba libraries has incomplete dependencies listed in wscript files. This usually is not a problem since the link line includes dependencies of their dependencies of their dependencies, and somewhere down that line all immediate dependencies which are missing are actually present. But sometimes this becomes a problem when a library does not declare direct dependency on at least one private library which it actually uses: in case no private library is listed as direct dependency, private library directory is not put into RUNPATH of the resulting binary, so the binary can not find its own dependencies. Fix a few such places, including some libraries which are a part of public abi (libsmbldap, libndr). Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
49 lines
2.3 KiB
Python
49 lines
2.3 KiB
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_GENERATOR('param_functions.c',
|
|
source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
|
|
target='param_functions.c',
|
|
group='build_source',
|
|
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=FUNCTIONS')
|
|
|
|
bld.SAMBA_GENERATOR('param_functions.h',
|
|
source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
|
|
target='param_functions.h',
|
|
group='build_source',
|
|
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=LIBPROTO')
|
|
|
|
bld.SAMBA_GENERATOR('param_local.h',
|
|
source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
|
|
target='param_local.h',
|
|
group='build_source',
|
|
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMDEFS --scope=LOCAL')
|
|
|
|
bld.SAMBA_GENERATOR('param_global.h',
|
|
source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
|
|
target='param_global.h',
|
|
group='build_source',
|
|
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMDEFS --scope=GLOBAL')
|
|
|
|
bld.SAMBA_GENERATOR('param_table_gen.c',
|
|
source='../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
|
|
target='param_table_gen.c',
|
|
group='build_source',
|
|
rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMTABLE')
|
|
|
|
bld.SAMBA_LIBRARY('server-role',
|
|
source='loadparm_server_role.c',
|
|
deps='samba-util time-basic samba-debug',
|
|
private_library=True)
|
|
|
|
bld.SAMBA_LIBRARY('samba-hostconfig',
|
|
source='loadparm.c util.c param_table.c',
|
|
pc_files='samba-hostconfig.pc',
|
|
vnum='0.0.1',
|
|
deps='DYNCONFIG server-role tdb',
|
|
public_deps='GNUTLS_HELPERS samba-util param_local.h',
|
|
public_headers='param.h',
|
|
autoproto='param_proto.h'
|
|
)
|
|
|
|
|