diff mbox series

[hurd,commited] elf: Fix tst-linkall-static link when pthread is not in libc

Message ID 20220104103646.4124305-1-samuel.thibault@ens-lyon.org
State Committed, archived
Headers show
Series [hurd,commited] elf: Fix tst-linkall-static link when pthread is not in libc | expand

Checks

Context Check Description
dj/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
dj/TryBot-32bit fail Patch series failed to apply

Commit Message

Samuel Thibault Jan. 4, 2022, 10:36 a.m. UTC
In that case we want to link in libanl.a, thus providing getaddrinfo_a.
---
 elf/Makefile | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/elf/Makefile b/elf/Makefile
index b23b8dfd51..d6b33fea1e 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -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 \