public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] elf: Fix tst-linkall-static link when pthread is not in libc
@ 2022-01-04 10:36 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2022-01-04 10:36 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7ac2bee49540b87e6e1c309e23ea170b0fa6e5df

commit 7ac2bee49540b87e6e1c309e23ea170b0fa6e5df
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date:   Tue Jan 4 10:34:29 2022 +0000

    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.

Diff:
---
 elf/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

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 \


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-04 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 10:36 [glibc] elf: Fix tst-linkall-static link when pthread is not in libc Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).