二
14
4月
2009
Build Gcc 4.4.0
Though no provision from the ftp servers, I used svn to download the new version 4.4.0 with fresh expectation. For OpenFOAM,
----------------------------------------------------------------------------tar xzf gcc-4.4.0.tgz
mkdir gcc-4.4.0-obj
cd gcc-4.4.0-obj
../gcc-4.4.0/configure --prefix=$HOME/tmp/gcc/okay/gcc-4.4.0 --exec-prefix=$HOME/tmp/gcc/okay/gcc-4.4.0 --enable-languages=c,c++ --enable-shared --with-gmp=/usr --with-mpfr=$HOME/OpenFOAM/ThirdParty/mpfr-2.4.1
gmake bootstrap
gmake install
tar cvzf gcc-4.4.0.bin.tgz gcc-4.4.0
and install it in ~/OpenFOAM/ThirdParty
mv gcc-4.4.0.bin.tgz ~/OpenFOAM/ThirdParty
cd ~/OpenFOAM/ThirdParty
tar xzf gcc-4.4.0.bin.tgz
----------------------------------------------------------------------------
Note a new platform dir should be made b4 using it of cause.
老魏
For God so loved the world, that he gave his only Son,
that whoever believes in him should not perish but have eternal life!


