How can we build GCC4.6.x using mingw gcc
This wiki page tells you the methods to build GCC4.6.x using mingw gcc.
Where to Get the source code (GCC and Binutils)
Release
Prerelease
GCC SVN
Binutils CVS & GIT
Build Procedure
**Prepare
Enter into your msys bash and build path.
**
Build & Install
- MinGW64
- winpthreads
- zlib
- libiconv
- libgmp
- libmpfr
- libmpc
- libppl
- libcloog
GCC Compiler
$ ./<your src path>/configure --prefix=/mingw --with-sysroot=/mingw \ --with-arch=i686 --with-tune=generic \ --host=i686-w64-mingw32 --target=i686-w64-mingw32 \ --with-lto-plugin --with-host-libstdcxx=-lstdc++ --enable-bootstrap --disable-werror \ --enable-languages=c,c++,fortran --enable-libgomp --enable-threads=posix --enable-lto --with-system-zlib \ --enable-libstdcxx-debug --enable-version-specific-runtime-libs --enable-fully-dynamic-string --disable-libstdcxx-pch \ --disable-sjlj-exceptions --with-dwarf2 --disable-symvers --enable-checking=release --enable-cxx-flags='-fno-function-sections -fno-data-sections' \ --enable-cloog-backend=isl --disable-shared --enable-static --disable-rpath \ --enable-libquadmath-support --enable-libquadmath --disable-multilib \ --disable-nls --with-pkgversion="pcx32" $ make $ make install $ make DESTDIR=/<your install path> install
Binutils
$ .//configure --prefix=/mingw --with-sysroot=/mingw \ --with-arch=i686 --with-tune=generic \ --host=i686-w64-mingw32 --target=i686-w64-mingw32 \ --with-lto-plugin --with-host-libstdcxx=-lstdc++ --enable-bootstrap --disable-werror \ --enable-languages=c,c++,fortran --enable-libgomp --enable-threads=posix --enable-lto --with-system-zlib \ --enable-libstdcxx-debug --enable-version-specific-runtime-libs --enable-fully-dynamic-string --disable-libstdcxx-pch \ --disable-sjlj-exceptions --with-dwarf2 --disable-symvers --enable-checking=release --enable-cxx-flags='-fno-function-sections -fno-data-sections' \ --enable-cloog-backend=isl --disable-shared --enable-static --disable-rpath \ --enable-libquadmath-support --enable-libquadmath --disable-multilib \ --disable-nls --with-pkgversion="pcx32" $ make $ make install $ make DESTDIR=/ install```