[PATCH] Add test for linking against most static libraries
Florian Weimer
fweimer@redhat.com
Fri Oct 28 18:55:00 GMT 2016
On 10/28/2016 07:33 PM, Joseph Myers wrote:
> On Fri, 28 Oct 2016, Carlos O'Donell wrote:
>
>> I'm kinda baffled by this. We don't set it in config-sysdirs.
>>
>> I expect you have a local patch that hid this.
>
> I expect he happened to have a compiler that searched a system include
> directory with crypt.h.
This is what seems to have happened, at least according to
elf/tst-linkall-static.o.d. It happened on all systems I tested this.
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.
Thanks,
Florian
More information about the Libc-alpha
mailing list