1 |
On Fri, 30 Apr 2010 12:10:02 +0200, Roger Mason wrote about |
2 |
[gentoo-user] Compiling 32 bit library on x86_64: |
3 |
|
4 |
>Hello, |
5 |
> |
6 |
>I need to compile a 32 bit version of libtermcap on an x86_64 |
7 |
>(multilib) system. Can someone tell me how to set up CFLAGS? This is |
8 |
>what I have at the moment: |
9 |
> |
10 |
>CFLAGS="-O2 -m32 -march=native -msse3 -pipe" |
11 |
>CXXFLAGS="-O2 -m32 -march=native -msse3 -pipe" |
12 |
|
13 |
The -march=native will shoot you in the foot. Pick a 32-bit |
14 |
architecture and use that instead; e.g. -march=i686 |
15 |
|
16 |
Then, -msse3 could also be problematic, unless the target is a very late |
17 |
model Pentium 4. I would ditch that too. |
18 |
-- |
19 |
Regards, |
20 |
|
21 |
Dave [RLU #314465] |
22 |
====================================================================== |
23 |
dwnoon@××××××××.com (David W Noon) |
24 |
====================================================================== |