about summary refs log tree commit diff
path: root/resolv
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-07-20 12:27:23 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-07-20 12:29:27 +0200
commit20be978f05dd0617ae5ba041aafc8abed4c06cb7 (patch)
tree0f6a16f0e5cd35422ba0a1b134e68651a09b9ee4 /resolv
parentff417d40178b7363b08516091f74c0b6615456ee (diff)
downloadglibc-20be978f05dd0617ae5ba041aafc8abed4c06cb7.tar.gz
glibc-20be978f05dd0617ae5ba041aafc8abed4c06cb7.tar.xz
glibc-20be978f05dd0617ae5ba041aafc8abed4c06cb7.zip
resolv: Do not install libnss_dns.a, libnss_dns.so
Fixes commit e1fcf21474c5b522f ("resolv: Move nss_dns into libc").
Diffstat (limited to 'resolv')
-rw-r--r--resolv/Makefile8
1 files changed, 8 insertions, 0 deletions
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 \