]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Fix tst-linkall-static link when pthread is not in libc
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 4 Jan 2022 10:34:29 +0000 (10:34 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 4 Jan 2022 10:34:47 +0000 (10:34 +0000)
In that case we want to link in libanl.a, thus providing getaddrinfo_a.

elf/Makefile

index b23b8dfd51da57cd552947e85022933d5b60d4be..d6b33fea1ed7b96f4da32949004b050bbdaed6bc 100644 (file)
@@ -1936,6 +1936,10 @@ $(objpfx)tst-ldconfig-X.out : tst-ldconfig-X.sh $(objpfx)ldconfig
 # Test static linking of all the libraries we can possibly link
 # together.  Note that in some configurations this may be less than the
 # complete list of libraries we build but we try to maxmimize this list.
+ifeq ($(pthread-in-libc),no)
+$(objpfx)tst-linkall-static: \
+  $(common-objpfx)resolv/libanl.a
+endif
 $(objpfx)tst-linkall-static: \
   $(common-objpfx)math/libm.a \
   $(common-objpfx)resolv/libresolv.a \