about summary refs log tree commit diff
path: root/nis
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-01-12 08:42:56 +0100
committerFlorian Weimer <fweimer@redhat.com>2018-01-12 08:42:56 +0100
commit9a08a366a7e7ddffe62113a9ffe5e50605ea0924 (patch)
tree05ef78ad468157201449fa0268c094509f2feed5 /nis
parentf172187b2d5bd9d22a5311b3ecd89d4ce5dbd2da (diff)
downloadglibc-9a08a366a7e7ddffe62113a9ffe5e50605ea0924.tar.gz
glibc-9a08a366a7e7ddffe62113a9ffe5e50605ea0924.tar.xz
glibc-9a08a366a7e7ddffe62113a9ffe5e50605ea0924.zip
libnsl: Do not install libnsl.so, libnsl.a if NIS is disabled [BZ #22701]
This also skips building the .o files for libnsl.a.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'nis')
-rw-r--r--nis/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/nis/Makefile b/nis/Makefile
index fae30d5da1..01ec4dc357 100644
--- a/nis/Makefile
+++ b/nis/Makefile
@@ -68,7 +68,15 @@ libnss_nis-inhibit-o	= $(filter-out .os,$(object-suffixes))
 libnss_nisplus-routines	:= $(addprefix nisplus-,$(databases)) nisplus-parser \
 			   nss-nisplus nisplus-initgroups
 libnss_nisplus-inhibit-o = $(filter-out .os,$(object-suffixes))
-endif
+
+else # not $(build-obsolete-nsl)
+# Pretend that libnsl.so is a linker script, so that the symbolic link
+# is not installed.
+install-lib-ldscripts = libnsl.so
+$(inst_libdir)/libnsl.so:
+libnsl-inhibit-o = .o # Build no static libnsl.a.
+
+endif # not $(build-obsolete-nsl)
 
 include ../Rules