mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Avoid race conditions when rebuilding librt.so
`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. 2018-01-06 Palmer Dabbelt <palmer@sifive.com> * nptl/Makefile (/librt.so): Always depend on "$(shared-thread-library)".
This commit is contained in:
parent
1598f3ad06
commit
8e13c51bb5
@ -19,6 +19,8 @@
|
||||
(VDSO_HASH_LINUX_4_15): Likewise.
|
||||
* scripts/build-many-glibcs.py (class Glibc): Strip shared objects
|
||||
in subdirectories of lib.
|
||||
* nptl/Makefile (/librt.so): Always depend on
|
||||
"$(shared-thread-library)".
|
||||
|
||||
2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user