glfs/general/prog/gcc/gcc-inst.xml
Tushar Teredesai b02f257b38 Fixes for bash 2.05a users, and other misc changes in descriptions
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@737 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-02-28 16:01:18 +00:00

28 lines
852 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
unset CXXFLAGS
export PATH_HOLD=$PATH &amp;&amp;
export PATH=/usr/src/gnat/bin:$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,java --enable-threads=posix \
--with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu &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-no-fixedincludes &amp;&amp;
export PATH=$PATH_HOLD</userinput></screen></para>
</sect2>