9832fd
NOTE: This is a downstream patch that should not go upstream.
9832fd
9832fd
diff -Nrup a/nss/Makefile b/nss/Makefile
9832fd
--- a/nss/Makefile	2019-07-30 13:28:36.493476963 -0400
9832fd
+++ b/nss/Makefile	2019-07-30 13:33:14.536086456 -0400
9832fd
@@ -118,7 +118,14 @@ $(inst_vardbdir)/Makefile: db-Makefile $
9832fd
 libnss_test1.so-no-z-defs = 1
9832fd
 libnss_test2.so-no-z-defs = 1
9832fd
 
9832fd
-rtld-tests-LDFLAGS += -Wl,--dynamic-list=nss_test.ver
9832fd
+# RHEL 7 glibc tree does not support rtld-tests-LDFLAGS.
9832fd
+# Instead we directly alter the way the tests are built.
9832fd
+# rtld-tests-LDFLAGS += -Wl,--dynamic-list=nss_test.ver
9832fd
+LDFLAGS-tst-nss-test1 += -Wl,-E
9832fd
+LDFLAGS-tst-nss-test2 += -Wl,-E
9832fd
+LDFLAGS-tst-nss-test3 += -Wl,-E
9832fd
+LDFLAGS-tst-nss-test4 += -Wl,-E
9832fd
+LDFLAGS-tst-nss-test5 += -Wl,-E
9832fd
 
9832fd
 libof-nss_test1 = extramodules
9832fd
 libof-nss_test2 = extramodules