This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3] elf: Add tst-ldconfig-bad-aux-cache test [BZ #18093]
On Thu, 16 May 2019, Carlos O'Donell wrote:
> What historical need drove the requirement to share headers?
My guess would be that it was more that multilib support (long before
sysroots) originally introduced a requirement for separate directories for
libraries without introducing such a requirement for headers. In that
context, it was natural to set up headers so they could be shared (with,
in glibc's case, special handling for gnu/lib-names.h and gnu/stubs.h).
Thus, there is in general in GCC no multilib-specific include directory
(no analogue of lib / lib64 / libx32 etc. directories for headers),
although it's possible to define SYSROOT_HEADERS_SUFFIX_SPEC (but most
configurations defining SYSROOT_SUFFIX_SPEC, possibly to an
automatically-generated definition based on the multilib configuration, do
not define SYSROOT_HEADERS_SUFFIX_SPEC).
--
Joseph S. Myers
joseph@codesourcery.com