Bootstrap order: - w32api - mingw-runtime - binutils - gmp - mpfr - gcc - binutils - w32api - mingw-runtime w32api ./configure --prefix=/mingw make make install mingw-runtime (requires w32api src in adjacent directory without version suffix) ./configure --prefix=/mingw make make install binutils ../binutils-?.?/configure \ --prefix=/mingw \ --disable-nls make tooldir=/mingw make tooldir=/mingw install gmp ./configure --prefix=/mingw --enable-cxx --build=i686-pc-mingw32 make make install (do not strip libraries - instead strip before installation and rerun make) mpfr ./configure --prefix=/mingw make make install gcc ../gcc-?.?.?/configure \ --prefix=/mingw \ --enable-languages=c,c++ \ --enable-threads \ --disable-nls \ --enable-__cxa_atexit \ --libexecdir=/mingw/lib (Add --disable-werror --disable-checking for snapshots) make bootstrap make install rm -rf /mingw/include/c++/4.?.?/i686-pc-mingw32/bits/*.gch Remove documentation rm -rf /mingw/{info,man,doc,share} Strip files find /mingw/bin -type f -exec strip --strip-all '{}' ';' find /mingw/lib -type f -exec strip --strip-debug '{}' ';'