码迷,mamicode.com
首页 > 其他好文 > 详细

mingw-gcc-10.0.1-experimental-i686-posix-sjlj-20200202-0303907

时间:2020-02-03 09:49:20      阅读:73      评论:0      收藏:0      [点我收藏+]

标签:bat   tst   echo   exp   conf   atomic   gcc   dynamic   library   

2020-01-12 gcc 发布了开发版的 10.0.0 之后版本升级为10.0.1
Thread model posix 版本的 gcc-10.0.1 下载地址
https://github.com/qq2225936589/gcc-i686-posix-sjlj-for-MSYS

$ gcc -v
Using built-in specs.
COLLECT_GCC=d:\msys\mingw\bin\gcc.exe
COLLECT_LTO_WRAPPER=d:/msys/mingw/bin/../libexec/gcc/i686-w64-mingw32/10.0.1/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../gcc-20200202-0303907/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-20200202-0303907, Built by NLSoft --with-bugurl=http://www.cnblogs.com/nlsoft
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.0.1 20200202 (experimental) (i686-posix-sjlj-20200202-0303907, Built by NLSoft)

git pull origin master
gcc-10.0.1-20200202-0303907
如果已经安装 libuv 时 D:\MSYS\local\include\tree.h 文件 改名为 tree.h.orig 等gcc 编译完成后 在改回来
-------------------------------------------------------------------------------
gcc version gcc-10.0.1-20200202-0303907 --enable-sjlj-exceptions 
-------------------------------------------------------------------------------
export CPP=/mingw/bin/cpp export LD_LIBRARY_PATH=/usr/local/lib export LIBS= export   CFLAGS=-O2 -pipe -fno-ident -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include export CPPFLAGS=-O2 -pipe -fno-ident -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include export CXXFLAGS=-O2 -pipe -fno-ident -I/usr/local/include -I/usr/mingw/i686-w64-mingw32/include export  LDFLAGS=-pipe -fno-ident -L/usr/local/lib  -L/usr/mingw/i686-w64-mingw32/lib -Wl,--large-address-aware 

mkdir gccbuild
cd gccbuild

../gcc-20200202-0303907/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-20200202-0303907, Built by NLSoft --with-bugurl=http://www.cnblogs.com/nlsoft

make -j2 && echo -------------.install.-------------------------- && make install

如果 make install 时出现错误 make: *** No rule to make target 时
D:\MSYS\build\gccbuild\ *.ppo;*.dep;*.plo;*.po 文件中的
D\:/MSYS 改成 D:/MSYS
d\:\msys 改成 d:\msys

d:\msys\bin\strip *.exe
d:\msys\bin\strip *.dll

 

mingw-gcc-10.0.1-experimental-i686-posix-sjlj-20200202-0303907

标签:bat   tst   echo   exp   conf   atomic   gcc   dynamic   library   

原文地址:https://www.cnblogs.com/nlsoft/p/12254439.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!