[PATCH] Add test for linking against most static libraries

Carlos O'Donell carlos@redhat.com
Fri Oct 28 20:21:00 GMT 2016


On 10/28/2016 02:55 PM, Florian Weimer wrote:
> 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.

That's what my build private scripts do :-)

I rebuild a sysroot out of a few headers and an install of master
kernel headers to detect immediate UAPI breakage as it goes in upstream.

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list