Jerry Geis
2005-Dec-30 20:07 UTC
[CentOS] x86_64 box need to compile and link program for i386
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20051230/224e5a7d/attachment-0001.html>
Johnny Hughes
2005-Dec-30 21:16 UTC
[CentOS] x86_64 box need to compile and link program for i386
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-0001.sig>