|
|
发表于 2005-11-21 12:51:03
|
显示全部楼层
How big is your gcc-3.3.tar.gz tarball? If it is over 30MB, then it is the tarball that includes all compilers such as gcc, g++, gcj etc.
As described in the LFS handbook and advised by the gcc developers, it is recommended to build gcc in a separate directory other than the gcc source tree. Assume you extracted your gcc tarball in /tmp
cd /tmp
tar zxf gcc-3.3.tar.gz
mkdir gcc-build
cd gcc-build
../gcc-3.3/configure --prefix=/opt --libexecdir=/opt/lib --enable-shared --enable-threads=posix --enable-language=c
Does mplayer requires c++ to compile? If yes, then you may need to use --enable-language=c,c++ in the above.
When finished,
make bootstrap
The purpose of bootstrap is to instruct gcc to compile itself several times to ensure it is free from errors. (First gcc-3.3, i.e. xgcc1, is compiled by gcc-4.0, then gcc-3.3 compile itself again to produce another gcc-3.3, xgcc2, codes are compared and so on).
This step may take quite long while but it will produce codes that are free from gcc-4.0 influences.
When done, "make install" to install your gcc-3.3. Finally,
ln -s /opt/bin/gcc /usr/bin/gcc-3.3
then you have finished the gcc-3.3 installation. |
|