This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

Re: How to pass CFLAGS to gcc when building gcc?


On Wed, Jun 27, 2001 at 08:37:33PM -0400, DJ Delorie wrote:
> 
> > Did you mean why it was there to begin with or why I removed it?
> 
> Why did you remove it.  But the other question is sure to raise an
> interesting story, too... ;-)

I put it there for several reasons:

1. I didn't know better then.
2. There was not top level directory you can pass CC to gcc during
the build at the time.
3. I had a set up under which I could configure a native Linux/x86 gcc
on a different platform with

# .../configure --target=i386-linux --host=i386-linux --build=....

without setting CC.

But the "gcc -b cpu-os" may not work for everyone. It no longer works
for me today. The proper way to do it is

# CC=cpu-os-gcc .../configure --target=cpu-os --host=cpu-os --build=....

That is why I removed it.


H.J.


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