Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] Compiling - Can I do this?
  • From: Volker Poplawski <volker@xxxxxxxxxxxx>
  • Date: Mon, 17 Jul 2006 15:10:56 +0200
  • Message-id: <200607171510.56573.volker@xxxxxxxxxxxx>
Am Freitag, 14. Juli 2006 04:25 schrieb Bob S:
> On Thursday 13 July 2006 02:36, Per Jessen wrote:
> > Bob S wrote:
> > > On Wednesday 12 July 2006 04:30, Per Jessen wrote:
> > >> Bob S wrote:
> > >> > I want to compile a tar.gz file of another application, BUT, I want
> > >> > to
> > >> > compile it as 32 bit. Is that possible? Can I compile in 32 bit
> > >> > mode on a 64 bit system?
> > >>
> > >> Yes. autoconf should figure it all out for you, provided you set the
> > >> right options, probably for gcc.
> > >
> > > Thanks for replying Per,
> > >
> > > Ummmmm....Could you be just a little more specific?? I pored over
> > > the man/info file on autoconf and it was not immediately obvious to
> > > me. Can you point me at some how-to?
> >
> > Hi Bob,
> >
> > I _knew_ you were going to ask ... sorry, I haven't had to look at this
> > in any detail, so this might not be any good: - I suspect all you need
> > to do is supply the right flag to gcc, which you do like this:
> >
> > CFLAGS=xxxxxxxxxxxxxxxxxx ./configure --opt=val ....
> >
> > when you run configure.
> > Having had a quick look at the gcc man-page, I think you need the 'm32'
> > option:
> >
> >
> > -m32
> > -m64
> > Generate code for a 32-bit or 64-bit environment. The 32-bit
> > environment sets int, long and pointer to 32 bits and generates code
> > that runs on any i386 system. The 64-bit environment sets int to 32
> > bits and long and pointer to 64 bits and generates code for AMD's
> > x86-64 architecture.
>
> Thanks Per,
>
> Will see if I can figure it out from here. Any other knowedgeable comments
> would be welcome from the other guru's
>
> Bob S.

Well, i'm not a guru ;-)
but you could try the 'linux32' command.

Regards
....Volker


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
References