glfs/general/prog/gcc/gcc-inst.xml
Larry Lawrence 1a686a13c9 added gnat and gcc recompile
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@95 af4574ff-66df-0310-9fd7-8a98e5e911e0
2002-08-16 15:43:44 +00:00

28 lines
827 B
XML

<sect2>
<title>Installation of gcc</title>
<para>Install gcc by running the following commands:</para>
<para><screen><userinput>export CC=cc &amp;&amp;
unset CFLAGS &amp;&amp;
unset CXXFLAGS &amp;&amp;
export PATH_HOLD=$PATH &amp;&amp;
export PATH=/usr/src/gnat:$PATH &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 --enable-threads=posix \
--with-slibdir=/lib --enable-__cxa_atexit &amp;&amp;
cd ../gcc-&gcc-version;/gcc/ada &amp;&amp;
touch treeprs.ads [es]info.h nmake.ad[bs] &amp;&amp;
cd /usr/src/gcc-build &amp;&amp;
make bootstrap &amp;&amp;
cd gcc &amp;&amp;
make gnatlib_and_tools &amp;&amp;
cd .. &amp;&amp;
make install &amp;&amp;
export PATH=$PATH_HOLD</userinput></screen></para>
</sect2>