From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89325 invoked by alias); 11 Jan 2018 18:22:11 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 89305 invoked by uid 89); 11 Jan 2018 18:22:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Date: Thu, 11 Jan 2018 18:22:00 -0000 To: libc-alpha@sourceware.org Subject: [PATCH] libnsl: Do not install libnsl.so, libnsl.a if NIS is disabled [BZ #22701] User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20180111182159.2E32B4070C60A@oldenburg.str.redhat.com> From: fweimer@redhat.com (Florian Weimer) X-SW-Source: 2018-01/txt/msg00404.txt.bz2 This also skips building the .o files for libnsl.a. 2018-01-11 Florian Weimer * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so): Prevent installation of libnsl.so. (libnsl-inhibit-o): Do not build (or install) static libraries. diff --git a/nis/Makefile b/nis/Makefile index b828c5ec4d..702c31eb63 100644 --- a/nis/Makefile +++ b/nis/Makefile @@ -69,7 +69,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