[PATCH v3 01/19] Avoid race conditions when rebuilding librt.so
Palmer Dabbelt
palmer@dabbelt.com
Wed Dec 27 06:06:00 GMT 2017
`make check' sometimes triggers a rebuild of librt.so using
nptl/Makefile, which ignores librt's dependence on libpthread. This
causes the build to blow up when we attempt to run the test suite on
RISC-V.
---
nptl/Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nptl/Makefile b/nptl/Makefile
index cf2ba8131b72..be6597e53942 100644
--- a/nptl/Makefile
+++ b/nptl/Makefile
@@ -612,6 +612,10 @@ else
librt = $(common-objpfx)rt/librt.a
endif
+# `make check' sometimes triggers a rebuild of librt.so using this Makefile,
+# which ignores librt's dependence on libpthread
+$(common-objpfx)rt/librt.so: $(shared-thread-library)
+
$(objpfx)tst-cancel17: $(librt)
$(objpfx)tst-cancelx17: $(librt)
$(objpfx)tst-_res1mod2.so: $(objpfx)tst-_res1mod1.so
--
2.13.6
More information about the Libc-alpha
mailing list