The scripts provided by the MinGW-builds project are designed
for building the dual-target(i686/x86_64) MinGW compiler for i686/x86_64 hosts.
The scripts are distributed under the 'BSD 3' license.
In order to use the scripts provided by the MinGW-builds project it is needed:
1. Windows-64bit or Linux+Wine-64bit
2. Install MSYS: http://tinyurl.com/c2jqh9p
3. Get the scripts into '<msys root>/home/<user>/mingw-builds':
"cd && git clone git://github.com/niXman/mingw-builds.git"
4. In the MSYS file structure delete the '/MinGW' directory.
5. Delete the paths pointining to any preinstalled MinGW from the 'PATH'
6. Go in to the MinGW-builds root directory.
"cd && cd mingw-builds"
"./build gcc-4.6.3 x32" for building i686-MinGW
"./build gcc-4.6.3 x64" for building x86_64-MinGW
"./build gcc-4.6.3 x32 x64" for building i686-MinGW and x86_64-MinGW
"./build gcc-4.6.3 --preload x32 x64" for building i686-MinGW and x86_64-MinGW
"./build gcc-4.6.3 --dwarf" for building i686-MinGW with DWARF exception handling
The '--buildroot=<path>' option specifies to the script to use '<path>' as build directory.
The '--preload' option specifies to the script to pre-download all the sources
and only after that, to begin the building. This allows to build different
versions of GCC simultaneously.
The '--download' option specifies to the script to download only the sources.
The '--dwarf' option specifies to the script to use DWARF exeptions handling
instead of SJLJ. This allows building for i686 host only, and i686 target only.
The '--no-multilib' option specifies to the script to build without multilib support.
The '--dyn-deps' option specifies to the script to build GCC with dynamically dependencies.
The '--rev=N' option specifies to the script the number of the build revision.
The '--threads' option specifies to the script the used threads model.
For more options please run: "./build --help"
For example, during the process of building of the i686-gcc-4.6.3 will
be created the following directories:
And the sources directory:
The archives with the built MinGW will be created in '<msys root>/home/<user>/'
At the moment, successfully building the following versions:
gcc-4_6-branch (currently 4.6.4 prerelease)
gcc-4_7-branch (currently 4.7.3 prerelease)
gcc-trunk (currently 4.8.0 snapshot)
cxx-conversion (currently 4.8.0 snapshot)