binutils-pass2.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/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. <sect1info condition="script">
  10. <productname>binutils-pass2</productname>
  11. <productnumber>&binutils-version;</productnumber>
  12. <address>&binutils-url;</address>
  13. </sect1info>
  14. <title>Binutils-&binutils-version; - Pass 2</title>
  15. <indexterm zone="ch-tools-binutils-pass2">
  16. <primary sortas="a-Binutils">Binutils</primary>
  17. <secondary>tools, pass 2</secondary>
  18. </indexterm>
  19. <sect2 role="package">
  20. <title/>
  21. <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  22. href="../chapter08/binutils.xml"
  23. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  24. <segmentedlist>
  25. <segtitle>&buildtime;</segtitle>
  26. <segtitle>&diskspace;</segtitle>
  27. <seglistitem>
  28. <seg>&binutils-tmpp2-sbu;</seg>
  29. <seg>&binutils-tmpp2-du;</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Binutils</title>
  35. <para>Create a separate build directory again:</para>
  36. <screen><userinput remap="pre">mkdir -v build
  37. cd build</userinput></screen>
  38. <para>Prepare Binutils for compilation:</para>
  39. <screen><userinput remap="configure">../configure \
  40. --prefix=/usr \
  41. --build=$(../config.guess) \
  42. --host=$LFS_TGT \
  43. --disable-nls \
  44. --enable-shared \
  45. --disable-werror \
  46. --enable-64-bit-bfd</userinput></screen>
  47. <variablelist>
  48. <title>The meaning of the new configure options:</title>
  49. <varlistentry>
  50. <term><parameter>--enable-shared</parameter></term>
  51. <listitem>
  52. <para>Builds <filename
  53. class="libraryfile">libbfd</filename> as a shared library.</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term><parameter>--enable-64-bit-bfd</parameter></term>
  58. <listitem>
  59. <para>Enables 64-bit support (on hosts with narrower word sizes).
  60. May not be needed on 64-bit systems, but does no harm.</para>
  61. </listitem>
  62. </varlistentry>
  63. </variablelist>
  64. <para>Compile the package:</para>
  65. <screen><userinput remap="make">make</userinput></screen>
  66. <para>Install the package:</para>
  67. <screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
  68. </sect2>
  69. <sect2 role="content">
  70. <title/>
  71. <para>Details on this package are located in
  72. <xref linkend="contents-binutils" role="."/></para>
  73. </sect2>
  74. </sect1>