glfs/general/prog/gcc/gcc-inst.xml

30 lines
1.1 KiB
XML
Raw Normal View History

<sect2>
<title>Installation of <application>gcc</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>gcc</application> by running the following commands:</para>
<screen><userinput><command>PATH_HOLD=$PATH &amp;&amp;
export PATH=/opt/gnat/bin:$PATH &amp;&amp;
cd gcc/ada &amp;&amp;
touch treeprs.ads [es]info.h nmake.ad[bs] &amp;&amp;
cd ../.. &amp;&amp;
mkdir ../gcc-build &amp;&amp;
cd ../gcc-build &amp;&amp;
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 &amp;&amp;
make bootstrap &amp;&amp;
make -C gcc gnatlib_and_tools &amp;&amp;
make install &amp;&amp;
ln -sf g77 /usr/bin/f77 &amp;&amp;
export PATH=$PATH_HOLD</command></userinput></screen>
<para>You may remove the <application>gnat</application> installation:</para>
<screen><userinput><command>rm -rf /opt/gnat</command></userinput></screen>
</sect2>