diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-02-02 02:48:35 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-02-02 05:18:45 +0100 |
commit | e3dac4b61aadeced427001f823377c79e457b8dd (patch) | |
tree | 7d4520a9b338177a451bb51f94b6bb6068adcf10 /lib | |
parent | b3fb115a3932423267022152a04fa5cfcd059239 (diff) | |
download | samba-e3dac4b61aadeced427001f823377c79e457b8dd.tar.gz samba-e3dac4b61aadeced427001f823377c79e457b8dd.tar.bz2 samba-e3dac4b61aadeced427001f823377c79e457b8dd.zip |
replace: Only add bsd dependency when bsd library was found.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Feb 2 05:18:45 CET 2012 on sn-devel-104
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/wscript | 5 |
1 files changed, 4 insertions, 1 deletions
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 |