123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-gcc" xreflabel="GCC" role="wrap">
- <title>GCC-&gcc-version;</title>
- <?dbhtml filename="gcc.html"?>
- <indexterm zone="ch-system-gcc"><primary sortas="a-GCC">GCC</primary></indexterm>
- <sect2 role="package"><title/>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem><seg>11.7 SBU</seg><seg>294 MB</seg></seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>Installation of GCC</title>
- <para>Apply a patch:</para>
- <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch</userinput></screen>
- <para>Apply another patch:</para>
- <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-linkonce-1.patch</userinput></screen>
- <para>Apply a sed substitution:</para>
- <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
- <para>Create a build directory:</para>
- <screen><userinput>mkdir ../gcc-build
- cd ../gcc-build</userinput></screen>
- <para>Now prepare GCC for compilation:</para>
- <screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \
- --libexecdir=/usr/lib --enable-shared \
- --enable-threads=posix --enable-__cxa_atexit \
- --enable-clocale=gnu --enable-languages=c,c++</userinput></screen>
- <para>Compile the package:</para>
- <screen><userinput>make</userinput></screen>
- <para>Test the results):</para>
- <screen><userinput>make -k check</userinput></screen>
- <para>The test suite notes from <xref linkend="ch-tools-gcc-pass2"/> are still very
- much appropriate here.</para>
- <para>Now install the package:</para>
- <screen><userinput>make install</userinput></screen>
- <para>Create this symlink:</para>
- <screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen>
- <para>Create another symlink:</para>
- <screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen>
- <note><para>Refer back to <xref linkend="ch-system-readjusting"/>
- and repeat the check.</para></note>
- </sect2>
- <sect2 id="contents-gcc" role="content"><title>Contents of GCC</title>
- <para>See testing</para>
- </sect2>
- </sect1>
|