1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib/util: Build genrand for util core

messages_dgm depends on genrand.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Amitay Isaacs 2019-06-28 23:07:34 +10:00 committed by Amitay Isaacs
parent e595d2a1fd
commit a59fd8164c
2 changed files with 10 additions and 6 deletions

View File

@ -145,6 +145,10 @@ def configure(conf):
conf.SAMBA_CHECK_PYTHON()
conf.SAMBA_CHECK_PYTHON_HEADERS()
# We just want gnutls_rnd for rand subsystem
conf.CHECK_FUNCS_IN('gnutls_rnd', 'gnutls')
if conf.CHECK_FOR_THIRD_PARTY():
conf.RECURSE('third_party/popt')
if conf.env.standalone_ctdb or conf.CONFIG_GET('ENABLE_SELFTEST'):

View File

@ -97,6 +97,12 @@ bld.SAMBA_LIBRARY('msghdr',
local_include=False,
private_library=True)
bld.SAMBA_LIBRARY('genrand',
source='genrand.c',
deps='replace gnutls',
local_include=False,
private_library=True)
if bld.env.SAMBA_UTIL_CORE_ONLY:
bld.SAMBA_LIBRARY('tevent-util',
@ -109,12 +115,6 @@ else:
bld.env.public_headers_skip.append('charset_compat.h')
bld.SAMBA_LIBRARY('genrand',
source='genrand.c',
deps='replace gnutls',
local_include=False,
private_library=True)
bld.SAMBA_BINARY('genrandperf',
source='tests/genrandperf.c',
deps='genrand replace',