socket-wrapper: Build socket_wrapper path relative to blddir
authorAmitay Isaacs <amitay@gmail.com>
Fri, 8 Jul 2016 13:37:18 +0000 (23:37 +1000)
committerMichael Adam <obnox@samba.org>
Fri, 8 Jul 2016 23:17:29 +0000 (01:17 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
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)