05 May
2019

[src build] old GCC compile

also on the old linux box

■gcc-4.6.4

tarx gcc-4.6.4.tar.gz
cd gcc-4.6.4
./contrib/download_prerequisites
cd ..
mkdir build
cd build
../gcc-4.6.4/configure --prefix=/usr/local/gcc-4.6.4 --enable-languages=c,c++,objc --disable-bootstrap
/usr/local/bin/make
/usr/local/bin/make install

vi ~/.bashrc
export PATH="/usr/local/gcc-4.6.4/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/gcc-4.6.4/lib:$LD_LIBRARY_PATH"
source ~/.bashrc

gcc -v
g++ -v


Posted by unchor at 18:39 | Comments (0)
<< [src build] old GCC compile | Main | [ubuntu] setup & configurations >>
Comments
There are no comments.
Post a comment