mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/replace: create a LIBREPLACE_H subsystem
metze
This commit is contained in:
parent
e15939b456
commit
b2e1441864
@ -295,10 +295,19 @@ def configure(conf):
|
||||
def build(bld):
|
||||
bld.RECURSE('buildtools/wafsamba')
|
||||
|
||||
REPLACE_SOURCE = 'replace.c snprintf.c'
|
||||
REPLACE_H_SOURCE = 'replace.c snprintf.c'
|
||||
|
||||
if bld.CONFIG_SET('REPLACE_STRPTIME'): REPLACE_H_SOURCE += ' strptime.c'
|
||||
if not bld.CONFIG_SET('HAVE_TIMEGM'): REPLACE_H_SOURCE += ' timegm.c'
|
||||
|
||||
bld.SAMBA_SUBSYSTEM('LIBREPLACE_H',
|
||||
REPLACE_H_SOURCE,
|
||||
cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_',
|
||||
group='compiler_libraries'
|
||||
)
|
||||
|
||||
REPLACE_SOURCE = REPLACE_H_SOURCE
|
||||
|
||||
if bld.CONFIG_SET('REPLACE_STRPTIME'): REPLACE_SOURCE += ' strptime.c'
|
||||
if not bld.CONFIG_SET('HAVE_TIMEGM'): REPLACE_SOURCE += ' timegm.c'
|
||||
if not bld.CONFIG_SET('HAVE_GETIFADDRS'): REPLACE_SOURCE += ' getifaddrs.c'
|
||||
if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c'
|
||||
if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c'
|
||||
|
Loading…
Reference in New Issue
Block a user