arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1636229-4.patch

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