| README.md | ||
Mingw-w64 MSVCRT for Alpine Linux
This repository contains some scripts and utilities for getting the Mingw-w64 GCC cross compiler working on Alpine Linux, using MSVCRT as the default C runtime.
Background
As of version , Mingw-w64 uses the Universal C Runtime (UCRT) by default when
compiling new programs1, which is available natively on Windows 10 and
later2. In order to build new programs with Mingw-w64 that can be used with
older versions of Windows without having to install additional dependencies,
one must create a custom build of the cross compiler with the
--with-default-msvcrt=msvcrt configure option.
The Mingw-w64 packages provided in the Alpine Linux official repositories doesn't explicitly define the MSVCRT option while configuring the package, so UCRT is used by default. This repository contains patches to create MSVCRT variants of these packages for Alpine Linux, as well as prebuilt binaries that can be used manually or on CI/CD workflows.