linux-mips
[Top] [All Lists]

Re: config.guess changs

To: "H . J . Lu" <hjl@lucon.org>
Subject: Re: config.guess changs
From: Ryan Murray <rmurray@cyberhqz.com>
Date: Thu, 27 Dec 2001 21:06:00 -0800
Cc: linux-mips@oss.sgi.com, config-patches@gnu.org
In-reply-to: <20011227095306.A16072@lucon.org>
Mail-followup-to: "H . J . Lu" <hjl@lucon.org>, linux-mips@oss.sgi.com, config-patches@gnu.org
References: <20011227020844.U29645@cyberhqz.com> <20011227095306.A16072@lucon.org>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.3.23i
On Thu, Dec 27, 2001 at 09:53:06AM -0800, H . J . Lu wrote:
> > The config.guess rework of 12/12/2001 doesn't work on big endian machines,
> > as the preprocessor defines "mips" to be " 1", so the cpp -E output ends
> > up being "CPU= 1".
> 
> Try this patch.
> 
> 
> H.J.
> ----
> 2001-12-27  H.J. Lu  <hjl@gnu.org>
> 
>       * config.guess (mips:Linux:*:*): Undefine CPU, mips and mipsel
>       first.
> 
> --- config.guess      Wed Dec 12 19:53:12 2001
> +++ config.guess      Thu Dec 27 09:51:18 2001
> @@ -770,6 +770,9 @@ EOF
>      mips:Linux:*:*)
>       eval $set_cc_for_build
>       sed 's/^        //' << EOF >$dummy.c
> +     #undef CPU
> +     #undef mips
> +     #undef mipsel
>       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || 
> defined(MIPSEL) 
>       CPU=mipsel 
>       #else

That fixes the problem here.

-- 
Ryan Murray, Debian Developer (rmurray@cyberhqz.com, rmurray@debian.org)
The opinions expressed here are my own.

Attachment: pgpXqxpbt4QKe.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>