PATCH: Configure x86_64 in sysdeps/x86_64/preconfigure

Mike Frysinger vapier@gentoo.org
Fri Mar 23 03:18:00 GMT 2012


On Wednesday 21 March 2012 17:45:50 Roland McGrath wrote:
> > $CC may not compile in -mx32 mode by default.  But we can set -mx32 in
> > CFLAGS.
> 
> The usual procedure for ABI-changing options is to put them into CC, not
> into CFLAGS.  That's how one normally builds for i686 on an x86_64 host,
> for example (CC='gcc -m32').  This lets the usual logic for default CFLAGS
> take effect, rather than forcing you to adding -g -O2 when all you wanted
> to do was add -mx32.

imo, if you're checking for what the compiler is going to output, then you 
should use the flags that the compiler is going to be using when compiling.  
this works fine for just about every package out there (i can say fairly 
confidently since we do multilib in Gentoo and we don't do CC="gcc -mabiflag").

my request wasn't to only support CFLAGS and not CC, but additionally CFLAGS, 
so for people who want to go the CC= route, it'll continue to work.  seems 
like using AC_TRY_COMPILE should satisfy me as well.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120323/d94af6e1/attachment.sig>


More information about the Libc-alpha mailing list