how to cross compile kexec for 64b x86_64 on a 32b x86

Neil Horman nhorman at
Tue Jun 24 14:52:25 EDT 2008

On Tue, Jun 24, 2008 at 11:11:36AM -0700, Srinivas Murthy wrote:
> Hi,
> 	I need to cross-compile kexec-tools-1.101 for a x86_64 architecture
> platform on a 32b x86.
> 	I didn't see any instructions in the configure, etc. scripts for doing this.
> 	Can you please let me know how to do this?
Mostly, you can get away with adding -m32 to the top level CFLAGS in the
makefile and running setarch i386 in the shell where you run make


> Thanks.
> _______________________________________________
> kexec mailing list
> kexec at

 *Neil Horman
 *Software Engineer
 *Red Hat, Inc.
 *nhorman at
 *gpg keyid: 1024D / 0x92A74FA1

More information about the kexec mailing list