Gentoo Archives: gentoo-user

From: Roger Mason <rmason@×××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Compiling 32 bit library on x86_64
Date: Fri, 30 Apr 2010 13:26:36
Message-Id: y65sk6dhy0w.fsf@perthite.esd.mun.ca
In Reply to: Re: [gentoo-user] Compiling 32 bit library on x86_64 by David W Noon
1 David W Noon <dwnoon@××××××××.com> writes:
2
3 > On Fri, 30 Apr 2010 12:10:02 +0200, Roger Mason wrote about
4 > [gentoo-user] Compiling 32 bit library on x86_64:
5 >
6 >>Hello,
7 >>
8 >>I need to compile a 32 bit version of libtermcap on an x86_64
9 >>(multilib) system. Can someone tell me how to set up CFLAGS? This is
10 >>what I have at the moment:
11 >>
12 >>CFLAGS="-O2 -m32 -march=native -msse3 -pipe"
13 >>CXXFLAGS="-O2 -m32 -march=native -msse3 -pipe"
14 >
15 > The -march=native will shoot you in the foot. Pick a 32-bit
16 > architecture and use that instead; e.g. -march=i686
17 >
18 > Then, -msse3 could also be problematic, unless the target is a very late
19 > model Pentium 4. I would ditch that too.
20
21 Many thanks. Interestingly enough, even though the build of libtermca
22 failed, the static library _was_ built and my application builds against
23 it just fine.
24
25 Roger