diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-12-08 07:02:27 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-12-13 07:32:04 -0800 |
commit | 57e349b1b0df1aee2dcd19dae1f324bde25ff8f0 (patch) | |
tree | 3bf01e052d03643009ca014874e4d438e2cbfb7b /nss | |
parent | 3b1402b3fc3a9ff228c2b721a67f0fef430a82fd (diff) | |
download | glibc-57e349b1b0df1aee2dcd19dae1f324bde25ff8f0.zip glibc-57e349b1b0df1aee2dcd19dae1f324bde25ff8f0.tar.gz glibc-57e349b1b0df1aee2dcd19dae1f324bde25ff8f0.tar.bz2 |
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>
Diffstat (limited to 'nss')
-rw-r--r-- | nss/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nss/Makefile b/nss/Makefile index bccf9f2..757446f 100644 --- a/nss/Makefile +++ b/nss/Makefile @@ -189,3 +189,11 @@ endif $(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 |