|
|
发表于 2006-1-7 09:34:26
|
显示全部楼层
There is a hint (a little bit dated) from http://www.linuxfromscratch.org/ ... ltiple_versions.txt
Alternatively, you may install your new compiler to other working directory such as /opt. e.g.
mkdir gcc-build
cd gcc-build
../gcc-xxxx/configure --prefix=[color="blue"]/opt --libexecdir=[color="Blue"]/opt/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-language=c,c++
make -j4 bootstrap
become root and then
make install
To compile new packages using the new compiler, issue the follow command to do configure:
CC=/opt/bin/gcc ./configure ... or CXX=/opt/bin/g++ ./configure ...
This is how I test gcc-4.1-snapshot release. |
|