diff mbox series

libatomic: Use config/mingw/lock.c for --enable-threads=single

Message ID 20230114203945.1282157-1-jwakely@redhat.com
State New
Headers show
Series libatomic: Use config/mingw/lock.c for --enable-threads=single | expand

Commit Message

Jonathan Wakely Jan. 14, 2023, 8:39 p.m. UTC
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(-)

Comments

Jonathan Yong Jan. 15, 2023, 2:24 p.m. UTC | #1
On 1/14/23 20:39, Jonathan Wakely wrote:
> OK for trunk?
> 

Looks OK to me, thanks for the patch.
diff mbox series

Patch

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)