This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Add test for linking against most static libraries
On Fri, 28 Oct 2016, Florian Weimer wrote:
> > Building glibc needs compiler headers (include and include-fixed
> > directories - but while we need limits.h from include-fixed, there may be
> > other headers in include-fixed that we don't want) and kernel headers.
>
> Are you certain about include-fixed part?
It has limits.h as a wrapper round the libc limits.h. Other headers,
fixed from libc or kernel or other system headers, wouldn't be wanted for
building glibc - but might well be present (and must not be searched until
after glibc's own headers - whereas for limits.h either order is OK).
> Are there any distributions which actually use fixincludes? What would be
If someone has built their own compiler for building glibc I'd expect any
fixed versions of glibc or kernel headers to be there as it would take
special measures to remove them after building GCC.
(I tried before unsuccessfully to get the "#ifdef linux" in linux/a.out.h
which results in it being fixincluded removed.
<https://lkml.org/lkml/2006/10/6/201>
<https://lkml.org/lkml/2011/10/11/210>. Other fixed headers may vary
depending on GCC / glibc / Linux versions.)
--
Joseph S. Myers
joseph@codesourcery.com