build: allow cross-builds to use shared libraries
authorAndrew Tridgell <tridge@samba.org>
Tue, 13 Apr 2010 02:41:26 +0000 (12:41 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 13 Apr 2010 02:41:34 +0000 (12:41 +1000)
buildtools/wafsamba/samba_conftests.py

index 348dc341e402c344916e0d6c80c68d095065318a..ccd476345ef8c6b5ae5afd663c77ea597baf6d4b 100644 (file)
@@ -165,7 +165,7 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, msg=None):
         ADD_LD_LIBRARY_PATH(os.path.join(bdir, 'default/libdir'))
 
     # we need to run the program, try to get its result
-    args = []
+    args = conf.SAMBA_CROSS_ARGS()
     proc = Utils.pproc.Popen([lastprog] + args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE)
     (out, err) = proc.communicate()
     w = conf.log.write