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

28 lines
831 B
XML
Raw Normal View History

<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/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 --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>