diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-02-20 11:26:15 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-02-20 02:58:20 +0100 |
commit | 3cd7fdab62e2a99a1068f9e8f5a09e0345b4cc90 (patch) | |
tree | 1d56ebb41ddc21ffb627ca5409f34433b38c1174 /lib/replace/wscript | |
parent | cdfc49cc6a96d08a81a780c85b8f7bbaeb7f352d (diff) | |
download | samba-3cd7fdab62e2a99a1068f9e8f5a09e0345b4cc90.tar.gz samba-3cd7fdab62e2a99a1068f9e8f5a09e0345b4cc90.tar.bz2 samba-3cd7fdab62e2a99a1068f9e8f5a09e0345b4cc90.zip |
build: Add libbsd as a dep for LIBREPLACE_HOSTCC
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Feb 20 02:58:20 CET 2012 on sn-devel-104
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 5bafc1fe9f..36c2f0f3e1 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -428,12 +428,16 @@ def build(bld): REPLACE_HOSTCC_SOURCE += ' %s' % filename break + extra_libs = '' + if bld.CONFIG_SET('HAVE_LIBBSD'): extra_libs += ' bsd' + bld.SAMBA_SUBSYSTEM('LIBREPLACE_HOSTCC', REPLACE_HOSTCC_SOURCE, use_hostcc=True, use_global_deps=False, cflags='-DSOCKET_WRAPPER_DISABLE=1 -DNSS_WRAPPER_DISABLE=1 -DUID_WRAPPER_DISABLE=1 -D_SAMBA_HOSTCC_', - group='compiler_libraries' + group='compiler_libraries', + deps = extra_libs ) REPLACE_SOURCE = REPLACE_HOSTCC_SOURCE @@ -452,9 +456,6 @@ 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', |