2002-08-16 23:43:44 +08:00
|
|
|
<sect2>
|
2003-09-26 11:06:17 +08:00
|
|
|
<title>Installation of <application><acronym>GCC</acronym></application></title>
|
2002-08-16 23:43:44 +08:00
|
|
|
|
2003-09-30 11:14:19 +08:00
|
|
|
&gnat-intro;
|
|
|
|
</sect2>
|
2003-10-01 00:06:59 +08:00
|
|
|
|
2003-09-30 11:14:19 +08:00
|
|
|
&gnat-inst;
|
2003-10-01 00:06:59 +08:00
|
|
|
|
2003-09-30 11:14:19 +08:00
|
|
|
<sect2><title>Return to Installation of <application><acronym>GCC</acronym></application></title>
|
|
|
|
|
2003-08-31 06:48:04 +08:00
|
|
|
<para>Patch the source files with the following command:</para>
|
2004-01-29 23:10:17 +08:00
|
|
|
<screen><userinput><command>patch -Np1 -i ../gcc-3.3.2-no_fixincludes-1.patch
|
|
|
|
sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</command></userinput></screen>
|
2002-08-16 23:43:44 +08:00
|
|
|
|
2003-09-26 11:06:17 +08:00
|
|
|
<para>Install <application><acronym>GCC</acronym></application> by running the
|
|
|
|
following commands:</para>
|
2003-08-31 06:48:04 +08:00
|
|
|
|
|
|
|
<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 &&
|
2004-01-29 23:10:17 +08:00
|
|
|
make -k check &&
|
2003-08-31 06:48:04 +08:00
|
|
|
make install &&
|
2004-01-29 23:10:17 +08:00
|
|
|
ln -sf ../usr/bin/cpp /lib &&
|
|
|
|
ln -sf gcc /usr/bin/cc &&
|
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-09-26 11:06:17 +08:00
|
|
|
<para>You may remove the <application><acronym>GNAT</acronym></application>
|
|
|
|
installation:</para>
|
2003-08-31 06:48:04 +08:00
|
|
|
<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>
|
|
|
|
|