From 5503f413bf4221d26f83333bb42d7b2cd056236c Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 26 Jan 2018 19:01:03 +0100 Subject: Build only shared libnsl objects if NIS is disabled (bug 22701) --- nis/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nis') diff --git a/nis/Makefile b/nis/Makefile index 01ec4dc357..e7497f7242 100644 --- a/nis/Makefile +++ b/nis/Makefile @@ -74,7 +74,8 @@ else # not $(build-obsolete-nsl) # is not installed. install-lib-ldscripts = libnsl.so $(inst_libdir)/libnsl.so: -libnsl-inhibit-o = .o # Build no static libnsl.a. +# Build only shared libnsl. +libnsl-inhibit-o = $(filter-out .os,$(object-suffixes)) endif # not $(build-obsolete-nsl) -- cgit 1.4.1