Mailinglist Archive: opensuse (3513 mails)

< Previous Next >
Re: [opensuse] How to compile for i86 on a x64 machine?
  • From: Joe Morris <Joe_Morris@xxxxxxx>
  • Date: Tue, 06 Jan 2009 20:17:28 +0800
  • Message-id: <49634BD8.1050402@xxxxxxx>
On 01/06/2009 07:53 PM, Josef Wolf wrote:
Hello,

I have entered 64 bit world with 11.1, and to my surprise, it seems to
work pretty fine so far.

Now I am curious how to compile for 32 bit machines from that 64 bit
machine. Do I really need to use a virtual machine or a cross compiler
or is there a more convenient way?

I guess it depends a bit on what you are building. For a spec file
linux32 rpmbuild -bb --target=i586 xxxx.spec and for a src.rpm, try
linux32 rpmbuild --rebuild --target=i586 xxxx.src.rpm. If it is a
source package, I would guess
linux32 ./configure && make, etc. linux32 is a 32 bit shell. HTH.

--
Joe Morris
Registered Linux user 231871 running openSUSE 10.3 x86_64





--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References