Installation of GCC
This package is known to behave badly when you have changed its
default optimization flags (including the -march and -mcpu options).
Therefore, if you have defined any environment variables that override
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
or modifying them when building GCC.
patch -Np1 -i ../gcc-2.95.3-2.patch
echo timestamp > gcc/cstamp-h.in
mkdir ../gcc-2-build
cd ../gcc-2-build
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
--enable-shared --enable-languages=c,c++ \
--enable-threads=posix
make bootstrap
make install
Add the lib directory to ld.so.conf so they can be found during
run-time:
echo "/opt/gcc-2.95.3/lib" >> /etc/ld.so.conf
ldconfig