waf: add library dependency for sendfile on Solaris
authorBjörn Jacke <bj@sernet.de>
Sun, 10 Feb 2019 21:38:49 +0000 (22:38 +0100)
committerBjoern Jacke <bjacke@samba.org>
Sun, 17 Feb 2019 12:33:15 +0000 (13:33 +0100)
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/smbconf/wscript_build
source3/wscript

index 9879624726b95e365bfaff5b04b4a00b7bb20fa0..4f9930a1ae049713f0e540b046a4aaef2917af46 100644 (file)
@@ -1,5 +1,5 @@
 bld.SAMBA_SUBSYSTEM('LIBSMBCONF',
                     source='smbconf.c smbconf_txt.c smbconf_util.c',
-                    deps='talloc'
+                    deps='talloc sendfile'
                     )
 
index a7891a829a8c7be3ae49e35466c8a221cb242b6d..e0db9839795d468ddd7e265c985cf721ecd6944c 100644 (file)
@@ -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('''