From 2a727ef6e7bffcaad7438e288c952f6157e075de Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 12 Apr 2010 09:47:49 +0200 Subject: lib/replace/wscript: inline LIBREPLACE_EXT into 'replace' as the autoconf system does metze --- lib/replace/wscript | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'lib/replace/wscript') diff --git a/lib/replace/wscript b/lib/replace/wscript index ca0c88e401..6a5e2abf8c 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -317,7 +317,7 @@ def build(bld): REPLACE_SOURCE = REPLACE_HOSTCC_SOURCE if bld.CONFIG_SET('REPLACE_GETPASS'): REPLACE_SOURCE += ' getpass.c' - + if not bld.CONFIG_SET('HAVE_CRYPT'): REPLACE_SOURCE += ' crypt.c' if not bld.CONFIG_SET('HAVE_DLOPEN'): REPLACE_SOURCE += ' dlfcn.c' if not bld.CONFIG_SET('HAVE_SOCKETPAIR'): REPLACE_SOURCE += ' socketpair.c' @@ -332,7 +332,7 @@ def build(bld): bld.SAMBA_LIBRARY('replace', source=REPLACE_SOURCE, group='base_libraries', - deps='dl nsl socket') + deps='crypt dl nsl socket') TEST_SOURCES = '''test/testsuite.c test/main.c test/strptime.c test/os2_delete.c test/getifaddrs.c''' @@ -343,13 +343,6 @@ def build(bld): deps='replace', install=False) - CRYPT_SOURCES = [] - if not 'HAVE_CRYPT' in bld.env: CRYPT_SOURCES.append('crypt.c') - - bld.SAMBA_SUBSYSTEM('LIBREPLACE_EXT', - CRYPT_SOURCES, - group='base_libraries') - # build replacements for stdint.h and stdbool.h if needed bld.SAMBA_GENERATOR('replace_stdint_h', rule='cp ${SRC} ${TGT}', -- cgit