2002-08-16 23:43:44 +08:00
|
|
|
<sect2>
|
2003-08-31 06:48:04 +08:00
|
|
|
<title>Installation of <application>gcc</application></title>
|
2002-08-16 23:43:44 +08:00
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>Patch the source files with the following command:</para>
|
|
|
|
<screen><userinput><command>patch -Np1 -i ../gcc-3.3.1-no_fixincludes-2.patch</command></userinput></screen>
|
2002-08-16 23:43:44 +08:00
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>Install <application>gcc</application> by running the following commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput><command>PATH_HOLD=$PATH &&
|
|
|
|
export PATH=/opt/gnat/bin:$PATH &&
|
2003-04-04 08:07:27 +08:00
|
|
|
cd gcc/ada &&
|
|
|
|
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
|
|
|
cd ../.. &&
|
2002-08-16 23:43:44 +08:00
|
|
|
mkdir ../gcc-build &&
|
|
|
|
cd ../gcc-build &&
|
2003-08-31 06:48:04 +08:00
|
|
|
CC=/usr/bin/gcc ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
2002-12-20 06:18:08 +08:00
|
|
|
--enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \
|
2003-04-04 08:07:27 +08:00
|
|
|
--enable-__cxa_atexit --enable-clocale=gnu &&
|
2002-08-16 23:43:44 +08:00
|
|
|
make bootstrap &&
|
2003-04-04 08:07:27 +08:00
|
|
|
make -C gcc gnatlib_and_tools &&
|
2003-08-31 06:48:04 +08:00
|
|
|
make install &&
|
2003-04-04 11:02:33 +08:00
|
|
|
ln -sf g77 /usr/bin/f77 &&
|
2003-08-31 06:48:04 +08:00
|
|
|
export PATH=$PATH_HOLD</command></userinput></screen>
|
2002-08-16 23:43:44 +08:00
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>You may remove the <application>gnat</application> installation:</para>
|
|
|
|
<screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen>
|
2003-04-04 08:07:27 +08:00
|
|
|
|
2002-08-16 23:43:44 +08:00
|
|
|
</sect2>
|
|
|
|
|