public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] resolv: Do not build libanl.so for ABIs starting at 2.35
@ 2021-12-29 16:39 Adhemerval Zanella
  2021-12-29 18:30 ` Florian Weimer
  0 siblings, 1 reply; 7+ messages in thread
From: Adhemerval Zanella @ 2021-12-29 16:39 UTC (permalink / raw)
  To: libc-alpha, Florian Weimer

---
 resolv/Makefile | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/resolv/Makefile b/resolv/Makefile
index 59e599535c..5606eab1fd 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -78,8 +78,12 @@ generate := mtrace-tst-leaks.out tst-leaks.mtrace tst-leaks2.mtrace
 
 extra-libs := libresolv libnss_dns
 ifeq ($(have-thread-library),yes)
-extra-libs += libanl
 routines += gai_sigqueue
+endif
+
+ifeq ($(have-GLIBC_2.34)$(have-thread-library),yesyes)
+# Empty compatibility library for old binaries.
+extra-libs += libanl
 
 tests += \
   tst-bug18665 \
@@ -176,6 +180,11 @@ $(libanl-routines-var) += \
 libanl-routines += libanl-compat
 libanl-shared-only-routines += libanl-compat
 
+# Pretend that libanl.so is a linker script, so that the symbolic link
+# is not installed.
+install-lib-ldscripts = libanl.so
+$(inst_libdir)/libanl.so:
+
 subdir-dirs = nss_dns
 vpath %.c nss_dns
 
-- 
2.32.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-02-11 11:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29 16:39 [PATCH] resolv: Do not build libanl.so for ABIs starting at 2.35 Adhemerval Zanella
2021-12-29 18:30 ` Florian Weimer
2021-12-30 14:06   ` Adhemerval Zanella
2022-01-03  4:53     ` Stafford Horne
2022-01-03 13:58       ` Adhemerval Zanella
2022-02-11 11:34         ` Stafford Horne
2022-02-11 11:42           ` Florian Weimer

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).