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 &&
|
2003-03-01 00:01:18 +08:00
|
|
|
unset CFLAGS
|
|
|
|
unset CXXFLAGS
|
2002-08-16 23:43:44 +08:00
|
|
|
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 \
|
2002-12-20 06:18:08 +08:00
|
|
|
--enable-languages=c,c++,objc,f77,ada,java --enable-threads=posix \
|
|
|
|
--with-slibdir=/lib --enable-__cxa_atexit --enable-clocale=gnu &&
|
2002-08-16 23:43:44 +08:00
|
|
|
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 .. &&
|
2003-01-31 09:35:28 +08:00
|
|
|
make install-no-fixedincludes &&
|
2002-08-16 23:43:44 +08:00
|
|
|
export PATH=$PATH_HOLD</userinput></screen></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|