From 64d1e08ea822bf47cb2796ad0f727136227f983c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 2 Oct 2017 14:30:46 +0200 Subject: 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. --- nss/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nss/Makefile') 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) -- cgit 1.4.1