This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Build only shared libnsl objects if NIS is disabled (bug 22701)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: fweimer at redhat dot com (Florian Weimer)
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 26 Jan 2018 19:05:46 +0100
- Subject: [PATCH] Build only shared libnsl objects if NIS is disabled (bug 22701)
- Authentication-results: sourceware.org; auth=none
- References: <20180111182159.2E32B4070C60A@oldenburg.str.redhat.com>
[BZ #22701]
* nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
Build only shared objects.
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)
--
2.16.1
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."