mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
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
This commit is contained in:
parent
b3fb115a39
commit
e3dac4b61a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user