Skip to content

waf: fix problem of cross compile

Sandy requested to merge sandy-lcq/samba:waf into master

After upgrade tdb from 1.3.16 to 1.3.17, waf build system which used by tdb upgrade from 1.5.19 to 2.0.8

on 1.5.19, for cross_compile, subprocess.Popen is set to be
samba_cross.cross_Popen, which will not execute testprog on
host, but only read result from cross-answers.txt which is
passed by option --cross-answer

part of old code:
args = Utils.to_list(kw.get('exec_args', []))
proc = Utils.pproc.Popen([lastprog] + args, stdout=Utils.pproc.PIPE, stderr=Utils.pproc.PIPE)

but on 2.0.8, exec_args is not used and cause configure
failed with Exec format error

fixed by append cross compile related args to cmd

Merge request reports