From: Björn Jacke Date: Sun, 10 Feb 2019 21:38:49 +0000 (+0100) Subject: waf: add library dependency for sendfile on Solaris X-Git-Tag: ldb-1.6.1~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8bf7ef87e29daa18b079d221ffa3252d1719f2a;p=thirdparty%2Fsamba.git waf: add library dependency for sendfile on Solaris Signed-off-by: Bjoern Jacke Reviewed-by: Andreas Schneider --- diff --git a/lib/smbconf/wscript_build b/lib/smbconf/wscript_build index 9879624726b..4f9930a1ae0 100644 --- a/lib/smbconf/wscript_build +++ b/lib/smbconf/wscript_build @@ -1,5 +1,5 @@ bld.SAMBA_SUBSYSTEM('LIBSMBCONF', source='smbconf.c smbconf_txt.c smbconf_util.c', - deps='talloc' + deps='talloc sendfile' ) diff --git a/source3/wscript b/source3/wscript index a7891a829a8..e0db9839795 100644 --- a/source3/wscript +++ b/source3/wscript @@ -1252,6 +1252,8 @@ main() { addmain=False, execute=True) + conf.SET_TARGET_TYPE('sendfile', 'EMPTY') + conf.CHECK_LIB('sendfile') if not Options.options.with_sendfile_support == False: if (host_os.rfind('linux') > -1) or (host_os.rfind('gnu') > -1) or (host_os.rfind('k*bsd*-gnu') > -1) or (host_os.rfind('kopensolaris*-gnu') > -1): conf.CHECK_CODE('''