From fab7ce3f5b4060bf62659e8b58529de4156b5a2f Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 31 May 2013 16:16:33 +0000 Subject: Link extra-libs consistently with libc and ld.so. --- nis/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nis/Makefile') diff --git a/nis/Makefile b/nis/Makefile index 0b3b6a2c25..0ce99d0770 100644 --- a/nis/Makefile +++ b/nis/Makefile @@ -76,12 +76,12 @@ $(objpfx)libnss_nis.so: $(objpfx)libnsl.so$(libnsl.so-version) \ $(common-objpfx)nss/libnss_files.so $(objpfx)libnss_nisplus.so: $(objpfx)libnsl.so$(libnsl.so-version) -# Depend on libc.so so a DT_NEEDED is generated in the shared objects. -# This ensures they will load libc.so for needed symbols if loaded by -# a statically-linked program that hasn't already loaded it. libnsl-libc = $(common-objpfx)linkobj/libc.so -$(services:%=$(objpfx)libnss_%.so) $(objpfx)libnsl.so: $(libnsl-libc) \ - $(common-objpfx)libc_nonshared.a +# Target-specific variable setting to link objects using deprecated +# RPC interfaces with the version of libc.so that makes them available +# for new links: +$(services:%=$(objpfx)libnss_%.so) $(objpfx)libnsl.so: \ + libc-for-link = $(libnsl-libc) ifeq ($(build-shared),yes) -- cgit v1.2.3