[PATCH] libatomic: Use config/mingw/lock.c for --enable-threads=single
Jonathan Wakely
jwakely@redhat.com
Sat Jan 14 20:39:45 GMT 2023
OK for trunk?
-- >8--
Without this change bootstrap fails for x86_64-w64-mingw32 with
--disable-threads=single because there is no lock.c file chosen by
libatomic's configure.
libatomic/ChangeLog:
* configure.tgt (config_path) [target_thread_file=single]:
Use 'mingw' config.
---
libatomic/configure.tgt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libatomic/configure.tgt b/libatomic/configure.tgt
index 57f093603bb..641dc834abc 100644
--- a/libatomic/configure.tgt
+++ b/libatomic/configure.tgt
@@ -160,7 +160,7 @@ case "${target}" in
*-*-mingw*)
# OS support for atomic primitives.
case ${target_thread_file} in
- win32 | mcf)
+ win32 | mcf | single)
config_path="${config_path} mingw"
;;
posix)
--
2.39.0
More information about the Gcc-patches
mailing list