resolv_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/resolv_wrapper/wscript

index 11904cec6302257dbeb31f375e75b3d096df50e7..25371ed80be664f7bda911fcf04d9dafe2c3d39f 100644 (file)
@@ -79,8 +79,8 @@ def configure(conf):
             conf.DEFINE("HAVE_NS_NAME_COMPRESS", 1)
 
         # Create full path to resolv_wrapper
-        srcdir = os.path.realpath(conf.srcdir)
-        libresolv_wrapper_so_path = srcdir + '/bin/default/lib/resolv_wrapper/libresolv-wrapper.so'
+        blddir = os.path.realpath(conf.blddir)
+        libresolv_wrapper_so_path = blddir + '/default/lib/resolv_wrapper/libresolv-wrapper.so'
 
     conf.DEFINE('LIBRESOLV_WRAPPER_SO_PATH', libresolv_wrapper_so_path)
     conf.DEFINE('RESOLV_WRAPPER', 1)