Quote:
Originally posted by datadriven
gcc 4.0 might make it into the distro as well.
|
It is in my Slackware-current now.
Compile great without any hassel at all. This is how I compile gcc-4.0.0
Steps.
0. Grab gcc-4.0 source from your favourite mirror. Assume you get the bz2 tar ball since it is smaller.
1. make sure you have enough drive space (1.2 Byte for me, if not, don't worry)
2. cd to your source tarball dir
3.
Code:
tar -xjvf gcc-4.0.0.tar.bz2
4.
5.
6.
Code:
../gcc-4.0.0/configure --prefix=/usr/local --disable-shared --enable-threads=posix --with-cpu=athlon-xp --enable-__cxa_atexit --enable-checking --with-gnu-ld --verbose --target=i686-slackware-linux --host=i686-slackware-linux
7.
Code:
make BOOT_CFLAGS='-O3 -march=athlon-xp' bootstrap4
Note: bootstrap4 is really a paranoia of me to have gcc build in 4 stages. You can actually just use bootstrap instead of bootstrap4. If you do not have enough space you can use bootstrap-lean
8.
Slackware specific.
Correct the info of the packages as you wish. This will help you removepkg when you do not want your own compile version of gcc anymore.
As I am typing now, am compiling kernel 2.6.11.8. i2c module couldn't compile. So I remove it from my configuration.
Compilation certainly seems faster!
EDITED:
Please read http://gcc.gnu.org/install/ before you begin.