接上篇博客,因为上一篇博客没有解决实际问题,所以这次继续解决问题:
之前测试过gcc4.4.0版本,发现不适合这个方法(具体原因,后面会说)。
测试版本:gcc4.6.2
See Installing GCC: Configuration for the full documentation. A major benefit of running srcdir/configure from outside the source directory (instead of running./configure) is that the source directory will not be modified in any way, so if your build fails or you want to re-configure and build again, you simply delete everything in the objdir and start again.
For example, configuring and building GCC 4.6.2 should be as simple as:
具体的命令如下:
前提你要下载gcc4.6.2版本,下载地址:https://bigsearcher.com/mirrors/gcc/releases/gcc-4.6.2/
tar xzf gcc-4.6.