aboutsummaryrefslogtreecommitdiff
path: root/nss/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-03-14 15:02:52 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-03-14 15:38:00 +0100
commit081bdf942126b7d4a368d09438a06fd831c14dad (patch)
tree0443315f5c94d1b07bb59c29c6c1ac61beb4712a /nss/Makefile
parent97f8225d22ef727ae9935cc231643efdc430d530 (diff)
downloadglibc-081bdf942126b7d4a368d09438a06fd831c14dad.zip
glibc-081bdf942126b7d4a368d09438a06fd831c14dad.tar.gz
glibc-081bdf942126b7d4a368d09438a06fd831c14dad.tar.bz2
nss: Fix tst-nss-files-alias-truncated for default --as-needed linking
Linking to the NSS module directly does not work if the linker defaults to --as-needed because it will remove the apparently unused DSO reference and not generate a DT_NEEDED entry. Use an explicit dlopen call, like in the other chroot tests involving NSS modules.
Diffstat (limited to 'nss/Makefile')
-rw-r--r--nss/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/Makefile b/nss/Makefile
index a8caa8a..95081bd 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -178,4 +178,5 @@ $(objpfx)tst-nss-files-hosts-multi: $(libdl)
$(objpfx)tst-nss-files-hosts-getent: $(libdl)
$(objpfx)tst-nss-files-alias-leak: $(libdl)
$(objpfx)tst-nss-files-alias-leak.out: $(objpfx)/libnss_files.so
-$(objpfx)tst-nss-files-alias-truncated: $(objpfx)/libnss_files.so
+$(objpfx)tst-nss-files-alias-truncated: $(libdl)
+$(objpfx)tst-nss-files-alias-truncated.out: $(objpfx)/libnss_files.so