GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc/aarch64

AArch64: Fix support for POSIX threads on MinGW

GCC now correctly supports POSIX threads when targeting AArch64 MinGW environments.

GCC’s configuration for AArch64 MinGW targets was missing necessary settings for POSIX thread support, causing build failures when --with-threads=pthread was specified. This commit corrects the configuration files, enabling POSIX threads on AArch64 MinGW.

In Details

This commit modifies the configuration files (config.gcc and mingw-pthread.h) to enable POSIX threads for AArch64 MinGW targets. The change involves adding the necessary flags and definitions to support pthread functionality. This is a configuration issue specific to the AArch64 architecture and the MinGW environment.

For Context

When GCC is built, it needs to be configured for a specific target environment (OS, architecture, ABI). This configuration process involves setting various flags and options that tell GCC how to generate code for that target. MinGW is a port of GCC to Windows, allowing developers to build Windows applications using GCC. POSIX threads (pthreads) provide a standard API for creating and managing threads. This commit fixes a configuration issue that prevented GCC from correctly supporting POSIX threads when targeting AArch64-based Windows systems using MinGW.

Filed Under: aarch64mingwthreadsconfiguration