PATCH: Configure x86_64 in sysdeps/x86_64/preconfigure

H.J. Lu hjl.tools@gmail.com
Thu Mar 22 00:30:00 GMT 2012


On Wed, Mar 21, 2012 at 2:45 PM, Roland McGrath <roland@hack.frob.com> 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.
>
>

Here is the patch to use AC_TRY_COMPILE.  Tested on Linux/x86-64.
OK to install?

Thanks.



-- 
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libc-x86_64-2c.patch
Type: text/x-patch
Size: 874 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120322/e66f5f2f/attachment.bin>


More information about the Libc-alpha mailing list