2002-08-16 23:43:44 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of gcc</title>
|
|
|
|
|
|
|
|
<para>Install gcc by running the following commands:</para>
|
|
|
|
|
|
|
|
<para><screen><userinput>export CC=cc &&
|
|
|
|
unset CFLAGS &&
|
|
|
|
unset CXXFLAGS &&
|
|
|
|
export PATH_HOLD=$PATH &&
|
2002-08-31 09:58:23 +08:00
|
|
|
export PATH=/usr/src/gnat/bin:$PATH &&
|
2002-08-16 23:43:44 +08:00
|
|
|
mkdir ../gcc-build &&
|
|
|
|
cd ../gcc-build &&
|
|
|
|
../gcc-&gcc-version;/configure --prefix=/usr --enable-shared \
|
|
|
|
--enable-languages=c,c++,objc,f77,ada --enable-threads=posix \
|
|
|
|
--with-slibdir=/lib --enable-__cxa_atexit &&
|
|
|
|
cd ../gcc-&gcc-version;/gcc/ada &&
|
|
|
|
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
|
|
|
cd /usr/src/gcc-build &&
|
|
|
|
make bootstrap &&
|
|
|
|
cd gcc &&
|
|
|
|
make gnatlib_and_tools &&
|
|
|
|
cd .. &&
|
|
|
|
make install &&
|
|
|
|
export PATH=$PATH_HOLD</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|