/src/mingw-w64/mingw-w64-crt/configure -prefix=/RosBE/i686-w64-mingw32 -with-sysroot=/RosBE/i686-w64-mingw32 -host=i686-w64-mingw32ĬD to the RosBE directory and execute theseįind -executable -type f -exec strip -s " " >& /dev/null /src/gcc/configure -target=i686-w64-mingw32 -prefix=/RosBE -with-sysroot=/RosBE -with-pkgversion="RosBE-Windows" -enable-languages=c,c++ -enable-fully-dynamic-string -enable-checking=release -enable-version-specific-runtime-libs -enable-plugins -disable-shared -disable-multilib -disable-nls -disable-werror -disable-win32-registry -disable-sjlj-exceptions -disable-libstdcxx-verbose
/src/gcc/configure -target=x86_64-w64-mingw32 -prefix=/RosBE -with-sysroot=/RosBE -with-pkgversion="RosBE-Windows" -enable-languages=c,c++ -enable-fully-dynamic-string -enable-checking=release -enable-version-specific-runtime-libs -enable-plugins -disable-shared -disable-multilib -disable-nls -disable-werror -disable-win32-registry -disable-sjlj-exceptions -disable-libstdcxx-verbose
#MINGW GCC INSTALL#
/src/binutils/configure -prefix=/RosBE -with-sysroot=/RosBE -target=i686-w64-mingw32 -disable-multilib -disable-werror -enable-lto -enable-plugins -with-zlib=yes -disable-nlsįinally install it into the designated directory.
/src/binutils/configure -prefix=/RosBE -with-sysroot=/RosBE -target=x86_64-w64-mingw32 -disable-multilib -disable-werror -enable-lto -enable-plugins -with-zlib=yes -disable-nls Use your amout of cores + 1 as number instead of the X.Įxport CFLAGS="-g0 -O2 -pipe -Wl,-S -march=pentium -mtune=i686"Įxport CXXFLAGS="-g0 -O2 -pipe -Wl,-S -march=pentium -march=i686"Ĭreate a build subdirectory for binutils:įrom the build directory run the binutils configure script:
#MINGW GCC 32 BIT#
#MINGW GCC DOWNLOAD#
The x86_64 download is the 64-bit version, which runs natively on and compiles for Windows 64-bit.Įach build is built with itself, so optimizations included in newer GCC versions are also compiled into the compiler itself.Download and install MSYS2.The i686 download is the 32-bit version, which runs natively on and compiles for Windows 32-bit (of course it also runs on 64-bit).
#MINGW GCC FREE#
The combination of both gives you a free C/C++ compiler for Windows.Īdditional tools are added to this build including:īinary downloads are available for Windows only: MinGW-w64 is a free and open source for targetting Windows 32-bit and 64-bit platforms with C/C++ compilers. GCC is a free and open source C/C++ compiler. The winlibs standalone build of GCC compiler and MinGW-w64.