2002-08-16 23:43:44 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of gcc</title>
|
|
|
|
|
|
|
|
<para>Install gcc by running the following commands:</para>
|
|
|
|
|
2003-04-04 08:07:27 +08:00
|
|
|
<para><screen><userinput>PATH_HOLD=$PATH &&
|
|
|
|
export PATH=$PATH:/opt/gnat/bin &&
|
|
|
|
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 &&
|
|
|
|
../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-01-31 09:35:28 +08:00
|
|
|
make install-no-fixedincludes &&
|
2003-04-04 11:02:33 +08:00
|
|
|
ln -sf g77 /usr/bin/f77 &&
|
2002-08-16 23:43:44 +08:00
|
|
|
export PATH=$PATH_HOLD</userinput></screen></para>
|
|
|
|
|
2003-04-04 08:07:27 +08:00
|
|
|
<para>You may remove the gnat installation:</para>
|
|
|
|
<para><screen><userinput>rm -rf /opt/gnat</userinput></screen></para>
|
|
|
|
|
2002-08-16 23:43:44 +08:00
|
|
|
</sect2>
|
|
|
|
|