This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tweaks for autoconf 2.50
On Thu, May 24, 2001 at 04:39:15AM -0300, Alexandre Oliva wrote:
> On May 24, 2001, "Zack Weinberg" <zackw@Stanford.EDU> wrote:
>
> > On Wed, May 23, 2001 at 11:40:29PM -0700, Geoff Keating wrote:
> >>
> >> "Zack Weinberg" <zackw@stanford.edu> writes:
> >>
> >> > AC_PROG_CC from 2.13 works just fine when
> >> > cross-compiling, we know this because the gcc directory has been using
> >> > it all along.
> >>
> >> I think you'll find that AC_PROG_CC from 2.13 doesn't work, because it
> >> uses AC_PROG_CC_WORKS, which requires that the compiler be able to
> >> link, and when you have no libc available because you had no compiler
> >> to build it then obviously you can't link anything.
>
> > So how come it works just fine for the gcc directory, then?
>
> Huh? AC_PROG_CC tests the bootstrap compiler in the GCC directory.
> The problem occurs when testing the compiler for the target.
Oh, now I get it.
Revised patch tomorrow morning, I need to go sleep now.
--
zw If punishments don't compensate the victims and don't prevent future
crimes they seem to me to be indistinguishable from random acts of
sadism.
-- Bernard Peek