mingw-w64-build is a Bash script to build a MinGW-w64 cross compiler for i686 (Win32) and x86_64 (Win64). It will build a fully static toolchain that can compile Windows executables that don't depend on any GCC dll files.
$HOME/.zeranoe/mingw-w64/i686
and $HOME/.zeranoe/mingw-w64/x86_64
are the
default install locations, but this location can be modified with the --prefix
option. To ensure the new compilers are available system-wide, add
$HOME/.zeranoe/mingw-w64/<arch>/bin
to the $PATH
.
mingw-w64-build should run on Ubuntu, Cygwin, macOS (with Homebrew), and other Bash based shells.
See mingw-w64-build --help
for all build options.
mingw-w64-build is licensed under the GNU GPL 3.0 or later. A copy of the license can be found in the LICENSE file.