anolis-glibc/glibc-rh1636229-4.patch
赵航 8c29e492e2 update to glibc-2.17-323.1.al7.1
Signed-off-by: zhaohang <1209176326@qq.com>
2021-09-09 20:51:25 +08:00

21 lines
799 B
Diff

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