third_party/nss_wrapper/wscript: check for libnsl and libsocket
authorBjörn Jacke <bj@sernet.de>
Sat, 16 Feb 2019 00:23:29 +0000 (01:23 +0100)
committerBjoern Jacke <bjacke@samba.org>
Sun, 17 Feb 2019 14:05:20 +0000 (15:05 +0100)
this is needed as there are HAVE_LIBNSL and HAVE_LIBSOCKET in the code and
Samba fails to build in a terrible obscure way on Solaris if this is not
working inside nss_wrapper here.

Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Björn Jacke <bjacke@samba.org>
Autobuild-Date(master): Sun Feb 17 15:05:20 CET 2019 on sn-devel-144

third_party/nss_wrapper/wscript

index fb9710636c429a079e18c81b437d6d60a0f1253b..68e301cb1adb2f1e1bb842448ffcf001fd546e19 100644 (file)
@@ -32,6 +32,7 @@ def configure(conf):
         conf.CHECK_FUNCS('__posix_getpwnam_r __posix_getpwuid_r')
         conf.CHECK_FUNCS('__posix_getgrgid_r __posix_getgrnam_r')
 
+        conf.CHECK_LIB('nsl socket')
         conf.CHECK_FUNCS_IN('gethostname',
                             'nsl',
                             checklibc=True,