> -----Original Message-----
> From: Akim Demaille [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 6:19 PM
> To: Alexandre Oliva
> Cc: Mo DeJong; [EMAIL PROTECTED]
> Subject: Re: --host => cross breaks GCC builds
>
>
> >>>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
>
> >> Yes!
>
> Alexandre> But note that cross_compiling=maybe is still necessary.
>
> Gross :)
>
> You know, frankly, I'm just trusting you, I'm dead lost.
>
> Never before the CVS Autoconf cross_compiling revamping, had I
> understood the mechanism of cross compiling in Autoconf. Since the
> day CVS Autoconf was simplified, I had a clear picture in mind, and it
> was clear we didn't need to guess cross_compiling. Now, even though I
> perfectly know you and Mo worked on a simplified
> forward-backward-framework, I still have difficulties to understand
> the whole thing. But you have a clear picture in your mind, and I buy
> your word.
>
I was a fervent supporter of the change to what is in CVS now and after
reading the whole thread, quite long as I was out of the office for some
days :-), I must admit that bacward compatibility was needed.
What I do not fully understand is why the patch saying that if --build and
--host are passed and equal we are not cross compiling and modifying the top
cygnus configure script to be backward compatible and to pass both --build
and --host to all sub-configures is not enough. After all that only request
that the top cygnus configure be up to date...
However I will buy any backward compatible version as soon as we are able to
discover, in the normal cases, that we are cross-compiling by just looking
at arguments (taht is at --build and --host). This is neede if we want to be
able to select the compiler to use based on the host on which the program
will run.
It was something that was left behind as it could be done quite simply as
soon as --host imply cross-compiling. I think it is important as it is a lot
more intuitive to say:
./configure --host=yyy
./configure --build=xxx --host=yyy
than
CC=yyy-gcc CXX=yyy-g++ CC_FOR_BUILD=gcc ./configure --host=yyy
or
CC=yyy-gcc CXX=yyy-g++ CC_FOR_BUILD=xxx-gcc ./configure --build=xxx
--host=yyy
Moreover very few users know that CC_FOR_BUILD ever exists...
Just my 2 cents
Bernard
--------------------------------------------
Bernard Dautrevaux
Microprocess Ingéniérie
97 bis, rue de Colombes
92400 COURBEVOIE
FRANCE
Tel: +33 (0) 1 47 68 80 80
Fax: +33 (0) 1 47 88 97 85
e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
--------------------------------------------