nss_wrapper: use conf.blddir to construct libnss_wrapper_so_path
authorStefan Metzmacher <metze@samba.org>
Fri, 7 Apr 2017 07:27:39 +0000 (09:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 7 Apr 2017 08:32:13 +0000 (10:32 +0200)
conf.blddir might not the the same as conf.srcdir + '/bin'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/nss_wrapper/wscript

index 113d99ffbe0f9e4bfb0e7bd78d5f8e73f8bf9fc7..f35e94e4068357173b45abed98ade9fb92c849b1 100644 (file)
@@ -101,8 +101,8 @@ def configure(conf):
                                define='HAVE_LINUX_GETNAMEINFO_UNSIGNED', headers='unistd.h netdb.h')
 
         # Create full path to nss_wrapper
-        srcdir = os.path.realpath(conf.srcdir)
-        libnss_wrapper_so_path = srcdir + '/bin/default/lib/nss_wrapper/libnss-wrapper.so'
+        blddir = os.path.realpath(conf.blddir)
+        libnss_wrapper_so_path = blddir + '/default/lib/nss_wrapper/libnss-wrapper.so'
 
     conf.DEFINE('LIBNSS_WRAPPER_SO_PATH', libnss_wrapper_so_path)
     conf.DEFINE('NSS_WRAPPER', 1)