mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 12:32:13 +08:00
f1a0956011
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@805 af4574ff-66df-0310-9fd7-8a98e5e911e0
27 lines
864 B
XML
27 lines
864 B
XML
<sect2>
|
|
<title>Installation of gcc</title>
|
|
|
|
<para>Install gcc by running the following commands:</para>
|
|
|
|
<para><screen><userinput>PATH_HOLD=$PATH &&
|
|
export PATH=$PATH:/opt/gnat/bin &&
|
|
cd gcc/ada &&
|
|
touch treeprs.ads [es]info.h nmake.ad[bs] &&
|
|
cd ../.. &&
|
|
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 \
|
|
--enable-__cxa_atexit --enable-clocale=gnu &&
|
|
make bootstrap &&
|
|
make -C gcc gnatlib_and_tools &&
|
|
make install-no-fixedincludes &&
|
|
ln -sf g77 /usr/bin/f77 &&
|
|
export PATH=$PATH_HOLD</userinput></screen></para>
|
|
|
|
<para>You may remove the gnat installation:</para>
|
|
<para><screen><userinput>rm -rf /opt/gnat</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|