diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-05-31 16:16:33 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-05-31 16:16:33 +0000 |
commit | fab7ce3f5b4060bf62659e8b58529de4156b5a2f (patch) | |
tree | 478613d49200afe992092d00c61f6fb82cec07b8 /nis | |
parent | eca5920cd90093d8921f27bfbf7bcf54807165bb (diff) | |
download | glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.tar.gz glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.tar.xz glibc-fab7ce3f5b4060bf62659e8b58529de4156b5a2f.zip |
Link extra-libs consistently with libc and ld.so.
Diffstat (limited to 'nis')
-rw-r--r-- | nis/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
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) |