|
|
发表于 2004-12-16 03:14:38
|
显示全部楼层
GCC-3.3.3
Introduction to GCC-3.3.3
The reason for installing GCC-3.3.3 is that some BLFS packages (such as compiled Java) have not been updated to be compilable by GCC-3.4.1.
Package information
Download (HTTP): http://ftp.gnu.org/gnu/gcc/gcc-3.3.3.tar.gz
Download (FTP): ftp://ftp.gnu.org/gnu/gcc/gcc-3.3.3.tar.gz
Download size: 22.7 MB
Estimated Disk space required: 289 MB
Estimated build time: 2.60 SBU
Additional downloads
Required Patch: http://www.linuxfromscratch.org/ ... fixincludes-1.patch
Installation of GCC
Apply the patches:
patch -Np1 -i ../gcc-3.3.3-no_fixincludes-1.patch
The GCC development team recommends building in a separate directory.
mkdir ../gcc-build &&
cd ../gcc-build
Configure GCC to build the C and C++ compilers and enable the related C++ options.
../gcc-3.3.3/configure \
--prefix=/opt/gcc-3.3.3 \
--enable-shared --enable-languages=c,c++ \
--enable-threads=posix
Compile and install GCC:
make bootstrap &&
make install
Move the C++ libraries to the standard lib directory to avoid having to add /opt/gcc-3.3.3/lib to /etc/ld.so.conf.
mv /opt/gcc-3.3.3/lib/libstdc++.so.5* /usr/lib
Configuring GCC
Configuration Information
As with most libraries, there is no configuration to do, save that the library directory i.e., /opt/lib or /usr/local/lib should appear in /etc/ld.so.conf so that ldd can find the shared libraries. After checking that this is the case, /sbin/ldconfig should be run while logged in as root.
If you only need the GCC-3.3.3 libraries, you may delete /opt/gcc-3.3.3.
Whenever you need to use GCC-3.3.3 instead of your system installed compiler, add /opt/gcc-3.3.3/bin to the front of your PATH or (preferably) set the CC environment variable before compiling the concerned package.
Contents
The GCC-3.3.3 package contains the gcc-3.3.3 C and C++ compilers and GCC-3.3.3 libstdc++.so that is required by some commercial and pre-compiled packages. |
|