2023-10-05 15:00:37 +00:00
|
|
|
commit 57e349b1b0df1aee2dcd19dae1f324bde25ff8f0
|
|
|
|
Author: H.J. Lu <hjl.tools@gmail.com>
|
|
|
|
Date: Wed Dec 8 07:02:27 2021 -0800
|
|
|
|
|
|
|
|
Disable DT_RUNPATH on NSS tests [BZ #28455]
|
|
|
|
|
|
|
|
The glibc internal NSS functions should always load NSS modules from
|
|
|
|
the system. For testing purpose, disable DT_RUNPATH on NSS tests so
|
|
|
|
that the glibc internal NSS functions can load testing NSS modules
|
|
|
|
via DT_RPATH.
|
|
|
|
|
|
|
|
This partially fixes BZ #28455.
|
|
|
|
|
|
|
|
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
|
|
|
|
|
|
|
|
Conflicts:
|
|
|
|
nss/Makefile
|
|
|
|
(different test backport order)
|
|
|
|
|
|
|
|
diff --git a/nss/Makefile b/nss/Makefile
|
2023-11-07 11:42:21 +00:00
|
|
|
index 64b29745131d3cf5..9af46fb3a8195809 100644
|
2023-10-05 15:00:37 +00:00
|
|
|
--- a/nss/Makefile
|
|
|
|
+++ b/nss/Makefile
|
2023-11-07 11:42:21 +00:00
|
|
|
@@ -215,3 +215,13 @@ endif
|
2023-10-05 15:00:37 +00:00
|
|
|
|
|
|
|
$(objpfx)tst-nss-files-alias-leak.out: $(objpfx)/libnss_files.so
|
|
|
|
$(objpfx)tst-nss-files-alias-truncated.out: $(objpfx)/libnss_files.so
|
|
|
|
+
|
|
|
|
+# Disable DT_RUNPATH on NSS tests so that the glibc internal NSS
|
|
|
|
+# functions can load testing NSS modules via DT_RPATH.
|
|
|
|
+LDFLAGS-tst-nss-test1 = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test2 = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test3 = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test4 = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test5 = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test_errno = -Wl,--disable-new-dtags
|
|
|
|
+LDFLAGS-tst-nss-test_gai_hv2_canonname = -Wl,--disable-new-dtags
|