2003-05-02 19:20:20 +01:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of GCC</title>
|
|
|
|
|
|
|
|
<para>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.</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>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 \
|
2003-05-12 04:29:23 +01:00
|
|
|
--enable-shared --enable-languages=c,c++ \
|
|
|
|
--enable-threads=posix
|
2003-05-02 19:20:20 +01:00
|
|
|
make bootstrap
|
|
|
|
make install</userinput></screen></para>
|
|
|
|
|
2003-08-30 00:20:53 +01:00
|
|
|
<para>Add the compiler's library directory to <filename>ld.so.conf</filename>,
|
|
|
|
so these libraries can be found at run time:</para>
|
2003-05-21 21:26:57 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>echo "/opt/gcc-2.95.3/lib" >> /etc/ld.so.conf
|
|
|
|
ldconfig</userinput></screen></para>
|
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
</sect2>
|
|
|
|
|