binutils-pass2-inst.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Re-installation of Binutils</title>
  4. <note><para>It's worth noting that the Binutils testsuite we run in this
  5. chapter is considered not as critical as the one we run in Chapter 6.</para>
  6. </note>
  7. <para>First create a separate build directory again:</para>
  8. <para><screen><userinput>mkdir ../binutils-build
  9. cd ../binutils-build</userinput></screen></para>
  10. <para>Now prepare Binutils to be compiled:</para>
  11. <para><screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
  12. &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --with-lib-path=/tools/lib</userinput></screen></para>
  13. <para>Before starting to build Binutils, remember to unset any environment
  14. variables that override the default optimization flags.</para>
  15. <para>Compile the package:</para>
  16. <para><screen><userinput>make </userinput></screen></para>
  17. <para>Test the results (nothing should fail here):</para>
  18. <para><screen><userinput>make check</userinput></screen></para>
  19. <para>And install the package:</para>
  20. <para><screen><userinput>make install</userinput></screen></para>
  21. <para>Now prepare Binutils for the re-adjusting of the toolchain in the next
  22. chapter:</para>
  23. <para><screen><userinput>make -C ld clean
  24. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen></para>
  25. <caution><para>Do not yet remove the Binutils source and build
  26. directories. We'll need these directories again in the next chapter in the
  27. state they are in now.</para></caution>
  28. </sect2>