mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-07 01:27:16 +08:00
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1199 af4574ff-66df-0310-9fd7-8a98e5e911e0
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<sect2>
|
|
<title>Installation of <application><acronym>GCC</acronym></application></title>
|
|
|
|
<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>
|
|
|
|
<para>Install <application><acronym>GCC</acronym></application> by running the
|
|
following commands:</para>
|
|
|
|
<screen><userinput><command>PATH_HOLD=$PATH &&
|
|
export PATH=/opt/gnat/bin:$PATH &&
|
|
cd gcc/ada &&
|
|
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
|
cd ../.. &&
|
|
mkdir ../gcc-build &&
|
|
cd ../gcc-build &&
|
|
CC=/usr/bin/gcc ../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
|
--enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \
|
|
--enable-__cxa_atexit --enable-clocale=gnu &&
|
|
make bootstrap &&
|
|
make -C gcc gnatlib_and_tools &&
|
|
make install &&
|
|
ln -sf g77 /usr/bin/f77 &&
|
|
export PATH=$PATH_HOLD</command></userinput></screen>
|
|
|
|
<para>You may remove the <application><acronym>GNAT</acronym></application>
|
|
installation:</para>
|
|
<screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|