-------------------------------------------------------------------------------
gcc version 9.0.1 20190322-77e3616 (experimental) --enable-sjlj-exceptions
-------------------------------------------------------------------------------
export CPP=/mingw/bin/cpp
export LD_LIBRARY_PATH=/usr/local/lib
export LIBS=
export CFLAGS=' -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include '
export CPPFLAGS=' -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include '
export CXXFLAGS=' -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include '
export LDFLAGS=' -L/usr/local/lib -L/usr/mingw/i686-w64-mingw32/lib '
mkdir gccbuild
cd gccbuild
../gcc-9.0.1-20190322-77e3616/configure
--prefix=/mingw32
--with-local-prefix=/mingw32
--build=i686-w64-mingw32
--host=i686-w64-mingw32
--target=i686-w64-mingw32
--with-native-system-header-dir=/mingw32/i686-w64-mingw32/include
--libexecdir=/mingw32/libexec
--enable-checking=release
--enable-fully-dynamic-string
--enable-graphite
--enable-languages=c,lto,c++
--enable-libatomic
--enable-libgomp
--enable-libstdcxx-time=yes
--enable-lto
--enable-sjlj-exceptions
--enable-shared
--enable-static
--enable-threads=posix
--disable-64bit
--disable-bootstrap
--disable-isl-version-check
--disable-libssp
--disable-libstdcxx-debug
--disable-libstdcxx-pch
--disable-multilib
--disable-nls
--disable-rpath
--disable-symvers
--disable-werror
--disable-win32-registry
--with-arch=i686
--with-gmp=/usr/local
--with-gnu-as
--with-gnu-ld
--with-isl=/usr/local
--with-libiconv
--with-mpc=/usr/local
--with-mpfr=/usr/local
--with-system-zlib
--with-tune=generic
--with-pkgversion='i686-posix-sjlj-20190322-77e3616, Built by NLSoft'
--with-bugurl=http://www.cnblogs.com/nlsoft
make -j4 && make install
-------------------------------------------------------------------------------
mingw-gcc-9.0.1-i686-posix-sjlj-20190322-77e3616
下载链接: https://pan.baidu.com/s/1Nw7lpaSC-tAuj5zDqfwEiQ 提取码: ddvc
mingw-gcc-9.0.1-i686-posix-sjlj-20190323-2b97491
下载链接: https://pan.baidu.com/s/1pYFalNQ5s6mM8fn7D5tbfg 提取码: sbe9
mingw-gcc-9.0.1-i686-posix-sjlj-20190326-4b2331a
下载链接: https://pan.baidu.com/s/1mkeUtJ0D7LWrGqP_3GzZ0A 提取码: phba
-------------------------------------------------------------------------------