glfs/general/prog/gcc/gcc-inst.xml
Tushar Teredesai f1a0956011 gcc - fortran compatibility link, typos
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@805 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-04-04 03:02:33 +00:00

27 lines
864 B
XML

<sect2>
<title>Installation of gcc</title>
<para>Install gcc by running the following commands:</para>
<para><screen><userinput>PATH_HOLD=$PATH &amp;&amp;
export PATH=$PATH:/opt/gnat/bin &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;
../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-no-fixedincludes &amp;&amp;
ln -sf g77 /usr/bin/f77 &amp;&amp;
export PATH=$PATH_HOLD</userinput></screen></para>
<para>You may remove the gnat installation:</para>
<para><screen><userinput>rm -rf /opt/gnat</userinput></screen></para>
</sect2>