源码安装gcc
解压进入目录
./contrib/download_prerequisites
下载依赖
../gcc-releases-gcc-10.3.0/configure --prefix=/home/lc/usr/gcc --enable-threads=posix --disable-checking --enable--long-long --with-system-zlib --enable-languages=c,c++,go --disable-multilib
生产makefile,注意安装目录,支持的语言。
make -j4
4个线程编译
make install
安装
源码编译安装gcc
最新推荐文章于 2024-02-06 00:20:28 发布