This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Disable building with i386-*, -march=i386 or -mcpu=i386.


> 	* sysdeps/i386/preconfigure.in: New file.
> 	* sysdeps/i386/preconfigure: Regenerate.

"New generated file."  (You can't regenerate what's never been generated.)

But you don't need a preconfigure if it's just going to be an error.  The
only time you need a preconfigure is when it's going to do something that
actually influences sysdeps selection.

> diff --git a/sysdeps/i386/configure.in b/sysdeps/i386/configure.in
> index 56a7c1f..ee55efd 100644
> --- a/sysdeps/i386/configure.in
> +++ b/sysdeps/i386/configure.in
> @@ -18,7 +18,8 @@ LIBC_COMPILER_BUILTIN_INLINED(
>    [libc_cv_unsupported_i386=no],
>    [AC_MSG_ERROR([
>  *** Building with -march=i386/-mcpu=i386 is not supported.
> -*** Please use host i786, i686, i586, or i486.])])
> +*** Please use host i786, i686, i586, or i486.
> +*** For example: export CFLAGS="-O2 -march=i386"])])

Never suggest setting variables in the environment!
(Also, you're suggesting exactly what's prohibited.)
Better would be:

*** For example, pass CFLAGS='-O2 -march=i686' to configure.

> +# Configure for i686 if the user asks for i386. We don't support
> +# i386 any more but it continues to be common for users to configure
> +# 32-bit x86 as i386. We build for i686 instead.

The comment no longer matches the code.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]