binutils-pass2-inst.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>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>Compile the package:</para>
  11. <para><screen><userinput>make </userinput></screen></para>
  12. <para>Test the package (nothing should fail here):</para>
  13. <para><screen><userinput>make check</userinput></screen></para>
  14. <para>And install the package:</para>
  15. <para><screen><userinput>make install</userinput></screen></para>
  16. <para>Now already prepare Binutils for the "Locking in" procedure in the next
  17. chapter:</para>
  18. <para><screen><userinput>make -C ld clean
  19. make -C ld LIB_PATH=/usr/lib:/lib</userinput></screen></para>
  20. <para><emphasis>Do not yet remove</emphasis> the Binutils source and build
  21. directories. We'll need these directories again in the next chapter in the
  22. state they are in now.</para>
  23. </sect2>