aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-04 10:34:29 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-04 10:34:47 +0000
commit7ac2bee49540b87e6e1c309e23ea170b0fa6e5df (patch)
treeda3c4fcef8edf4b3330dffdeb7e25e46714db2f2
parent28713c06129f8f64f88c423266e6ff2880216509 (diff)
downloadglibc-7ac2bee49540b87e6e1c309e23ea170b0fa6e5df.tar
glibc-7ac2bee49540b87e6e1c309e23ea170b0fa6e5df.tar.gz
glibc-7ac2bee49540b87e6e1c309e23ea170b0fa6e5df.tar.bz2
glibc-7ac2bee49540b87e6e1c309e23ea170b0fa6e5df.zip
elf: Fix tst-linkall-static link when pthread is not in libc
In that case we want to link in libanl.a, thus providing getaddrinfo_a.
-rw-r--r--elf/Makefile4
1 files changed, 4 insertions, 0 deletions
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 \