From e3dac4b61aadeced427001f823377c79e457b8dd Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 2 Feb 2012 02:48:35 +0100 Subject: replace: Only add bsd dependency when bsd library was found. Autobuild-User: Jelmer Vernooij Autobuild-Date: Thu Feb 2 05:18:45 CET 2012 on sn-devel-104 --- lib/replace/wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/replace/wscript b/lib/replace/wscript index 4b4f0a8a6a..5bafc1fe9f 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -452,6 +452,9 @@ def build(bld): if not bld.CONFIG_SET('HAVE_INET_NTOP'): REPLACE_SOURCE += ' inet_ntop.c' if not bld.CONFIG_SET('HAVE_INET_PTON'): REPLACE_SOURCE += ' inet_pton.c' + extra_libs = '' + if bld.CONFIG_SET('HAVE_LIBBSD'): extra_libs += ' bsd' + bld.SAMBA_LIBRARY('replace', source=REPLACE_SOURCE, group='base_libraries', @@ -461,7 +464,7 @@ def build(bld): # at the moment: # hide_symbols=bld.BUILTIN_LIBRARY('replace'), private_library=True, - deps='crypt dl nsl socket rt bsd') + deps='crypt dl nsl socket rt' + extra_libs) bld.SAMBA_SUBSYSTEM('replace-test', source='''test/testsuite.c test/strptime.c -- cgit