nss_wrapper: use conf.blddir to construct libnss_wrapper_so_path
[samba.git] / 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)