%general-entities; ]> $LastChangedBy: archaic $ $Date: 2004-08-09 23:25:57 -0500 (Mon, 09 Aug 2004) $ GCC-&gcc3-version; Introduction to <application><acronym>GCC</acronym></application>-&gcc3-version; The reason for installing GCC-&gcc3-version; is that some BLFS packages (such as compiled Java) have not been updated to be compilable by GCC-&gcc-version;. Package information Download (HTTP): Download (FTP): Download size: &gcc3-size; Estimated disk space required: &gcc3-buildsize; Estimated build time: &gcc3-time; Additional downloads Required Patch: Required Patch: Installation of <application><acronym>GCC</acronym></application> Apply the patches: patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch && patch -Np1 -i ../gcc-&gcc3-version;-linkonce-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-&gcc3-version;/configure \ --prefix=/opt/gcc-&gcc3-version; \ --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-&gcc3-version;/lib to /etc/ld.so.conf. mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib Configuring <application><acronym>GCC</acronym></application> Configuration Information If you only need the GCC-&gcc3-version; libraries, you may delete /opt/gcc-&gcc3-version;. Whenever you need to use GCC-&gcc3-version; instead of your system installed compiler, add /opt/gcc-&gcc3-version;/bin to the front of your PATH or (preferably) set the CC environment variable before compiling the concerned package. Contents The GCC-&gcc3-version; package contains the gcc-&gcc3-version; C and C++ compilers and GCC-&gcc3-version; libstdc++.so that is required by some commercial and pre-compiled packages.