resolv: Do not install libnss_dns.a, libnss_dns.so

Message ID 87y2a1qjv1.fsf@oldenburg.str.redhat.com
State New
Headers show
Series
  • resolv: Do not install libnss_dns.a, libnss_dns.so
Related show

Commit Message

Florian Weimer via Libc-alpha July 20, 2021, 11:56 a.m.
Fixes commit e1fcf21474c5b522f ("resolv: Move nss_dns into libc").

---
 resolv/Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Andreas Schwab July 20, 2021, 12:38 p.m. | #1
Ok.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

Patch

diff --git a/resolv/Makefile b/resolv/Makefile
index 31d27454b4..e138a1fdac 100644
--- a/resolv/Makefile
+++ b/resolv/Makefile
@@ -179,6 +179,14 @@  libanl-shared-only-routines += libanl-compat
 subdir-dirs = nss_dns
 vpath %.c nss_dns
 
+# Build only an empty shared libnss_dns.
+libnss_dns-inhibit-o = $(filter-out .os,$(object-suffixes))
+
+# Pretend that libnss_dns.so is a linker script, so that the symbolic link
+# is not installed.
+install-lib-ldscripts = libnss_dns.so
+$(inst_libdir)/libnss_dns.so:
+
 ifeq ($(run-built-tests),yes)
 ifneq (no,$(PERL))
 tests-special += $(objpfx)mtrace-tst-leaks.out $(objpfx)mtrace-tst-leaks2.out \