binutils-pass2.xml 2.9 KB

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