binutils-pass2.xml 2.9 KB

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