gcc-pass1.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-gcc-pass1" role="wrap">
  7. <title>GCC-&gcc-version; - Pass 1</title>
  8. <?dbhtml filename="gcc-pass1.html"?>
  9. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>4.4 SBU</seg><seg>300 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>Installation of GCC</title>
  18. <screen><userinput>mkdir ../gcc-build
  19. cd ../gcc-build</userinput></screen>
  20. <para>Prepare GCC for compilation:</para>
  21. <screen><userinput>CC="gcc -B/usr/bin" ../gcc-&gcc-version;/configure \
  22. --prefix=/tools --libexecdir=/tools/lib \
  23. --with-local-prefix=/tools --disable-nls \
  24. --enable-shared --enable-languages=c</userinput></screen>
  25. <para>Continue with compiling the package:</para>
  26. <screen><userinput>make BOOT_LDFLAGS="-static" bootstrap</userinput></screen>
  27. <para>Now install the package:</para>
  28. <screen><userinput>make install</userinput></screen>
  29. <screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
  30. </sect2>
  31. </sect1>