about summary refs log tree commit diff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2017-10-02 14:30:46 +0200
committerAndreas Schwab <schwab@suse.de>2017-10-04 14:20:48 +0200
commit64d1e08ea822bf47cb2796ad0f727136227f983c (patch)
tree52de75ef8311e28c26ce32650d8a4c959b6f25a2 /nss/Makefile
parent86c27ade1e44e29922d33676f950f7334edb37a7 (diff)
downloadglibc-64d1e08ea822bf47cb2796ad0f727136227f983c.tar.gz
glibc-64d1e08ea822bf47cb2796ad0f727136227f983c.tar.xz
glibc-64d1e08ea822bf47cb2796ad0f727136227f983c.zip
Move nss_compat from nis to nss subdir and install it unconditionally
This has been tested that local lookup still works with and
without an installed libnss_nis, and that NIS lookup works when
libnss_nis is available.
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/nss/Makefile b/nss/Makefile
index c9a5200f96..f27bed11fc 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -72,7 +72,7 @@ tests += tst-cancel-getpwuid_r
 endif
 
 # Specify rules for the nss_* modules.  We have some services.
-services		:= files db
+services		:= files db compat
 
 extra-libs		= $(services:%=libnss_%)
 # These libraries will be built in the `others' pass rather than
@@ -95,11 +95,15 @@ libnss_db-routines	:= $(libnss_db-dbs) db-open db-init hash-string
 generated		+= $(filter-out db-alias.c db-netgrp.c, \
 					$(addsuffix .c,$(libnss_db-dbs)))
 
+libnss_compat-routines	:= $(addprefix compat-,grp pwd spwd initgroups) \
+			   nisdomain
+
 install-others		+= $(inst_vardbdir)/Makefile
 
 # Build static module into libc if requested
 libnss_files-inhibit-o	= $(filter-out .os,$(object-suffixes))
 libnss_db-inhibit-o	= $(filter-out .os,$(object-suffixes))
+libnss_compat-inhibit-o	= $(filter-out .os,$(object-suffixes))
 ifeq ($(build-static-nss),yes)
 routines                += $(libnss_files-routines)
 static-only-routines    += $(libnss_files-routines)