]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
libatomic: Use config/mingw/lock.c for --enable-threads=single
authorJonathan Wakely <jwakely@redhat.com>
Fri, 13 Jan 2023 13:13:55 +0000 (13:13 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 16 Jan 2023 10:28:53 +0000 (10:28 +0000)
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

index 57f093603bbe7e3452aaf79d2ecbb7549ac9efa3..641dc834abc4039e5c986aee9f11f5403a3f6063 100644 (file)
@@ -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)