Gentoo Archives: gentoo-user

From: David W Noon <dwnoon@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Compiling 32 bit library on x86_64
Date: Fri, 30 Apr 2010 12:10:39
Message-Id: 20100430130938.0963648c@karnak.local
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 ======================================================================

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Compiling 32 bit library on x86_64 Roger Mason <rmason@×××.ca>
[gentoo-user] Re: Compiling 32 bit library on x86_64 Nikos Chantziaras <realnc@×××××.de>