summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-02 02:48:35 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-02 05:18:45 +0100
commite3dac4b61aadeced427001f823377c79e457b8dd (patch)
tree7d4520a9b338177a451bb51f94b6bb6068adcf10 /lib
parentb3fb115a3932423267022152a04fa5cfcd059239 (diff)
downloadsamba-e3dac4b61aadeced427001f823377c79e457b8dd.tar.gz
samba-e3dac4b61aadeced427001f823377c79e457b8dd.tar.xz
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/wscript5
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