Download gcc:
mkdir srcgcc
mkdir objgcc
Extract the source files into the source directory, then go to the object directory to configure your build:
cd objgcc
make distclean; CFLAGS=-m64; CC=gcc; ../srcgcc/gcc-3.4.1/configure --prefix=/opt/gcc-3.4.1/ --disable-multilib --enable-languages=c,c++
In the above command the target directory is /opt/gcc-3.4.1. If you run into permission issues, make sure you own the target directory:
sudo chown gbezerra /opt/gcc-3.4.1
Now compile gcc:
make bootstrap
Finally install it:
sudo make install
No comments:
Post a Comment