mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 12:32:13 +08:00
3e0869e0bc
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@520 af4574ff-66df-0310-9fd7-8a98e5e911e0
28 lines
857 B
XML
28 lines
857 B
XML
<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 &&
|
|
export PATH=/usr/src/gnat/bin:$PATH &&
|
|
mkdir ../gcc-build &&
|
|
cd ../gcc-build &&
|
|
../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 &&
|
|
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>
|
|
|