1
0

gcc.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-gcc" xreflabel="GCC" role="wrap">
  7. <title>GCC-&gcc-version;</title>
  8. <?dbhtml filename="gcc.html"?>
  9. <indexterm zone="ch-system-gcc"><primary sortas="a-GCC">GCC</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <segmentedlist>
  12. <segtitle>&buildtime;</segtitle>
  13. <segtitle>&diskspace;</segtitle>
  14. <seglistitem><seg>11.7 SBU</seg><seg>294 MB</seg></seglistitem>
  15. </segmentedlist>
  16. </sect2>
  17. <sect2 role="installation">
  18. <title>Installation of GCC</title>
  19. <para>Apply a patch:</para>
  20. <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch</userinput></screen>
  21. <para>Apply another patch:</para>
  22. <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-linkonce-1.patch</userinput></screen>
  23. <para>Apply a sed substitution:</para>
  24. <screen><userinput>sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in</userinput></screen>
  25. <para>Create a build directory:</para>
  26. <screen><userinput>mkdir ../gcc-build
  27. cd ../gcc-build</userinput></screen>
  28. <para>Now prepare GCC for compilation:</para>
  29. <screen><userinput>../gcc-&gcc-version;/configure --prefix=/usr \
  30. --libexecdir=/usr/lib --enable-shared \
  31. --enable-threads=posix --enable-__cxa_atexit \
  32. --enable-clocale=gnu --enable-languages=c,c++</userinput></screen>
  33. <para>Compile the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>Test the results):</para>
  36. <screen><userinput>make -k check</userinput></screen>
  37. <para>The test suite notes from <xref linkend="ch-tools-gcc-pass2"/> are still very
  38. much appropriate here.</para>
  39. <para>Now install the package:</para>
  40. <screen><userinput>make install</userinput></screen>
  41. <para>Create this symlink:</para>
  42. <screen><userinput>ln -s ../usr/bin/cpp /lib</userinput></screen>
  43. <para>Create another symlink:</para>
  44. <screen><userinput>ln -s gcc /usr/bin/cc</userinput></screen>
  45. <note><para>Refer back to <xref linkend="ch-system-readjusting"/>
  46. and repeat the check.</para></note>
  47. </sect2>
  48. <sect2 id="contents-gcc" role="content"><title>Contents of GCC</title>
  49. <para>See testing</para>
  50. </sect2>
  51. </sect1>