x86_64 box need to compile and link program for i386

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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: not available
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.bin

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux