On 9 March 2014 12:37, Leandro Dorileo <l...@dorileo.org> wrote: > Hi Paolo, > > On Sun, Mar 09, 2014 at 08:30:28AM +0100, Paolo Bonzini wrote: >> Il 08/03/2014 19:47, Leandro Dorileo ha scritto: >> >Remove the arg parsing implementations using getopt and use qemu-arg. >> >Also remove the qemu-img-cmds.hx since it's now generated on building time, >> >adapted the build system to generate the .hx file using the qemu-img itself >> >using the qemu-arg internal command generate-hx. >> > >> >Signed-off-by: Leandro Dorileo <l...@dorileo.org> >> >> This makes it much harder to cross-compile QEMU. > > What's non-portable in this case? what would limit the QEMU cross-compile?
qemu-img is a binary for the target system; it can't run at all on the host system, so you can't run it during compilation. You need to keep "things we do during build" completely separate from the runtime binaries. thanks -- PMM