def build(bld):
- bld.set_rpath()
-
# libreplace needs to put the library in the right build groups
# as libreplace is a base library for everything, even for our
# compilers, we need libreplace to build very early
REPLACE_SOURCE = 'replace.c snprintf.c'
-
- if bld.CONFIG_SET('REPLACE_STRPTIME'):
- REPLACE_SOURCE += ' strptime.c'
+ 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'
+ if not bld.CONFIG_SET('HAVE_CONNECT'): REPLACE_SOURCE += ' socket.c'
bld.SAMBA_LIBRARY('replace',
source=REPLACE_SOURCE,