binutils-pass1.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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-pass1" role="wrap">
  7. <title>Binutils-&binutils-version; - Pass 1</title>
  8. <?dbhtml filename="binutils-pass1.html"?>
  9. <sect2 role="package"><title/>
  10. <segmentedlist>
  11. <segtitle>&buildtime;</segtitle>
  12. <segtitle>&diskspace;</segtitle>
  13. <seglistitem><seg>1.0 SBU</seg><seg>194 MB</seg></seglistitem>
  14. </segmentedlist>
  15. </sect2>
  16. <sect2 role="installation">
  17. <title>Installation of Binutils</title>
  18. <para>Create a build dir:</para>
  19. <screen><userinput>mkdir ../binutils-build
  20. cd ../binutils-build</userinput></screen>
  21. <note><para>If you want the SBU values you could wrap the four commands in a
  22. <command>time</command> command like this:
  23. <userinput>time { ./configure ... &amp;&amp; ... &amp;&amp; ...
  24. &amp;&amp; make install; }</userinput>.</para></note>
  25. <para>Now prepare Binutils for compilation:</para>
  26. <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
  27. --disable-nls</userinput></screen>
  28. <para>Continue with compiling the package:</para>
  29. <screen><userinput>make configure-host
  30. make LDFLAGS="-all-static"</userinput></screen>
  31. <para>Now install the package:</para>
  32. <screen><userinput>make install</userinput></screen>
  33. <para>Now prepare the linker for the <quote>Adjusting</quote> phase later on:</para>
  34. <screen><userinput>make -C ld clean
  35. make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
  36. <warning><para><emphasis>Do not yet remove</emphasis> the Binutils build and
  37. source directories. You will need them again in their current state a bit
  38. further on in this chapter.</para></warning>
  39. </sect2>
  40. </sect1>