[PATCH] Add test for linking against most static libraries
Joseph Myers
joseph@codesourcery.com
Fri Oct 28 20:08:00 GMT 2016
On Fri, 28 Oct 2016, Florian Weimer wrote:
> I suspect the only way to guard against this is to parse the default compiler
> search paths from gcc -v and replace the variants of /usr/include found
> therein with a carefully prepared directory tree of installed headers and some
> linked-in kernel headers.
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.
But in some cases it may require other installed system headers as well.
E.g. memusagestat requires installed GD headers. Systemtap support
requires installed sys/sdt.h. I don't know what might require other
installed headers as well, especially for the non-Linux ports.
So while avoiding /usr/include is desirable, doing so while keeping all
the cases that properly use installed headers working may be tricky.
(I'd argue that the memusagestat case should be solved by moving it to a
separate package - maybe released along with glibc, but built with
installed libraries only rather than as part of a glibc build.)
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list