This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: inhibit_libc definition patch
- To: cgd at sibyte dot com (Chris G. Demetriou)
- Subject: Re: inhibit_libc definition patch
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 28 Apr 2000 14:18:59 -0700
- CC: gcc-patches at gcc dot gnu dot org
- References: <5thfcm9c8t.fsf@highland.sibyte.com>
cgd@sibyte.com (Chris G. Demetriou) writes:
> One of the problems i've run into several times (several recent
> vintages of gcc, at several employers 8-) is the fact that the a
> cross-compiler cannot be built without any target headers, which is
> (as far as I can tell) caused by misplaced or outright missing
> definitions for inhibit_libc.
...
> If it's not acceptable or The Right Thing, it'd really be nice to know
> what the right thing is. 8-)
The Right Thing is that
(a) you provide headers using the --with-headers= configure option; and
(b) only if someone doesn't do this should inhibit_libc be defined,
in which case it should be defined for all target files.
I expect that at some point in the future, trying to build gcc without
the target system's headers will simply not work.
--
- Geoffrey Keating <geoffk@cygnus.com>