[CentOS] x86_64 box need to compile and link program for i386

Fri Dec 30 21:16:17 UTC 2005
Johnny Hughes <mailing-lists at hughesjr.com>

On Fri, 2005-12-30 at 15:07 -0500, Jerry Geis wrote:
> I have an x86_64 box. I have a program I need to 
> compile with the 32 bit compiler and linker.
> 
> Are there directions explaining how to do that somplace?
> 
> Or can someone provide details.
> 
> THanks,
> 
> Jerry
> 

What I do is have an i386 chroot on the x86_64 box.

You can create the chroot with yum.

once you have it, you can compile like this (from within the chroot):

setarch i386 rpmbuild --rebuild --target i386 xxxxx.src.rpm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20051230/e434ad60/attachment-0004.sig>