David W Noon <dwn...@ntlworld.com> writes:

> On Fri, 30 Apr 2010 12:10:02 +0200, Roger Mason wrote about
> [gentoo-user] Compiling 32 bit library on x86_64:
>
>>Hello,
>>
>>I need to compile a 32 bit version of libtermcap on an x86_64
>>(multilib) system.  Can someone tell me how to set up CFLAGS?  This is
>>what I have at the moment:
>>
>>CFLAGS="-O2 -m32 -march=native -msse3 -pipe"
>>CXXFLAGS="-O2 -m32 -march=native -msse3 -pipe"
>
> The -march=native will shoot you in the foot. Pick a 32-bit
> architecture and use that instead; e.g. -march=i686
>
> Then, -msse3 could also be problematic, unless the target is a very late
> model Pentium 4.  I would ditch that too.

Many thanks.  Interestingly enough, even though the build of libtermca
failed, the static library _was_ built and my application builds against
it just fine.

Roger

Reply via email to