binutils-pass2-inst.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Re-installation of Binutils</title>
  4. <para>First create a separate build directory again:</para>
  5. <para><screen><userinput>mkdir ../binutils-build
  6. cd ../binutils-build</userinput></screen></para>
  7. <para>Now prepare Binutils to be compiled:</para>
  8. <para><screen><userinput>../binutils-&binutils-version;/configure --prefix=/stage1 \
  9. &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --with-lib-path=/stage1/lib</userinput></screen></para>
  10. <para>Before starting to build Binutils, remember to unset any environment
  11. variables that override the default optimization flags.</para>
  12. <para>Compile the package:</para>
  13. <para><screen><userinput>make </userinput></screen></para>
  14. <para>Test the results (nothing should fail here):</para>
  15. <para><screen><userinput>make check</userinput></screen></para>
  16. <para>And install the package:</para>
  17. <para><screen><userinput>make install</userinput></screen></para>
  18. <para>Now already prepare Binutils for the "Locking in" procedure in the next
  19. chapter:</para>
  20. <para><screen><userinput>make -C ld clean
  21. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen></para>
  22. <para><emphasis>Do not yet remove</emphasis> the Binutils source and build
  23. directories. We'll need these directories again in the next chapter in the
  24. state they are in now.</para>
  25. </sect2>