binutils-pass2.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-tools-binutils-pass2" role="wrap">
  9. <title>Binutils-&binutils-version; - Pass 2</title>
  10. <?dbhtml filename="binutils-pass2.html"?>
  11. <indexterm zone="ch-tools-binutils-pass2">
  12. <primary sortas="a-Binutils">Binutils</primary>
  13. <secondary>tools, pass 2</secondary></indexterm>
  14. <sect2 role="package"><title/>
  15. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  16. href="../chapter06/binutils.xml"
  17. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  18. <segmentedlist>
  19. <segtitle>&buildtime;</segtitle>
  20. <segtitle>&diskspace;</segtitle>
  21. <seglistitem><seg>1.5 SBU</seg><seg>114 MB</seg></seglistitem>
  22. </segmentedlist>
  23. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  24. href="../chapter06/binutils.xml"
  25. xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  26. </sect2>
  27. <sect2 role="installation">
  28. <title>Re-installation of Binutils</title>
  29. <para>Create a separate build directory again:</para>
  30. <screen><userinput>mkdir -v ../binutils-build
  31. cd ../binutils-build</userinput></screen>
  32. <para>Prepare Binutils for compilation:</para>
  33. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
  34. --disable-nls --enable-shared --with-lib-path=/tools/lib</userinput></screen>
  35. <para>The meaning of the new configure options:</para>
  36. <variablelist>
  37. <varlistentry>
  38. <term><parameter>--with-lib-path=/tools/lib</parameter></term>
  39. <listitem><para>This tells the configure script to specify the library
  40. search path during the compilation of Binutils, resulting in <filename
  41. class="directory">/tools/lib</filename> being passed to the linker.
  42. This prevents the linker from searching through library directories on
  43. the host.</para></listitem>
  44. </varlistentry>
  45. </variablelist>
  46. <para>Compile the package:</para>
  47. <screen><userinput>make</userinput></screen>
  48. <para>Compilation is now complete. As discussed earlier, running the
  49. test suite is not mandatory for the temporary tools here in this
  50. chapter. To run the Binutils test suite anyway, issue the following
  51. command:</para>
  52. <screen><userinput>make check</userinput></screen>
  53. <para>Install the package:</para>
  54. <screen><userinput>make install</userinput></screen>
  55. <para>Now prepare the linker for the <quote>Re-adjusting</quote> phase in the next
  56. chapter:</para>
  57. <screen><userinput>make -C ld clean
  58. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen>
  59. <warning><para><emphasis>Do not</emphasis> remove the Binutils source and
  60. build directories yet. These directories will be needed again in the next
  61. chapter in their current state.</para></warning>
  62. </sect2>
  63. <sect2 role="content"><title/>
  64. <para>Details on this package are located in <xref
  65. linkend="contents-binutils" role="."/></para>
  66. </sect2>
  67. </sect1>