]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
swrap: Build socket_wrapper path relative to blddir
authorAmitay Isaacs <amitay@gmail.com>
Fri, 8 Jul 2016 13:37:18 +0000 (23:37 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 11 Jul 2016 10:19:13 +0000 (12:19 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/socket_wrapper/wscript

index 4b6e5fa1aa29ecc71f7399490ed76dd203d69f70..dbefa83ea330cc951cf5b5b2fcdeacfc82004b9f 100644 (file)
@@ -96,8 +96,8 @@ def configure(conf):
                                    define='HAVE_EVENTFD_UNSIGNED_INT', headers='sys/eventfd.h')
 
         # Create full path to socket_wrapper
-        srcdir = os.path.realpath(conf.srcdir)
-        libsocket_wrapper_so_path = srcdir + '/bin/default/lib/socket_wrapper/libsocket-wrapper.so'
+        blddir = os.path.realpath(conf.blddir)
+        libsocket_wrapper_so_path = blddir + '/default/lib/socket_wrapper/libsocket-wrapper.so'
 
     conf.DEFINE('LIBSOCKET_WRAPPER_SO_PATH', libsocket_wrapper_so_path)
     conf.DEFINE('SOCKET_WRAPPER', 1)