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: inhibit_libc definition patch



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>

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