|
@@ -10,20 +10,15 @@ default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
|
|
or modifying them when building GCC.</para>
|
|
or modifying them when building GCC.</para>
|
|
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
|
|
<para><screen><userinput>patch -Np1 -i ../gcc-2.95.3-2.patch
|
|
|
|
+patch -Np1 -i ../gcc-2.95.3-returntype-fix.patch
|
|
echo timestamp > gcc/cstamp-h.in
|
|
echo timestamp > gcc/cstamp-h.in
|
|
mkdir ../gcc-2-build
|
|
mkdir ../gcc-2-build
|
|
cd ../gcc-2-build
|
|
cd ../gcc-2-build
|
|
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
|
|
../gcc-2.95.3/configure --prefix=/opt/gcc-2.95.3 \
|
|
- --enable-shared --enable-languages=c,c++ \
|
|
|
|
|
|
+ --enable-shared --enable-languages=c \
|
|
--enable-threads=posix
|
|
--enable-threads=posix
|
|
make bootstrap
|
|
make bootstrap
|
|
make install</userinput></screen></para>
|
|
make install</userinput></screen></para>
|
|
|
|
|
|
-<para>Add the compiler's library directory to <filename>ld.so.conf</filename>,
|
|
|
|
-so these libraries can be found at run time:</para>
|
|
|
|
-
|
|
|
|
-<para><screen><userinput>echo "/opt/gcc-2.95.3/lib" >> /etc/ld.so.conf
|
|
|
|
-ldconfig</userinput></screen></para>
|
|
|
|
-
|
|
|
|
</sect2>
|
|
</sect2>
|
|
|
|
|