1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-tools-binutils-pass1" role="wrap">
- <title>Binutils-&binutils-version; - Pass 1</title>
- <?dbhtml filename="binutils-pass1.html"?>
- <indexterm zone="ch-tools-binutils-pass1">
- <primary sortas="a-Binutils">Binutils</primary>
- <secondary>tools, pass 1</secondary></indexterm>
- <sect2 role="package"><title/>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem><seg>1.0 SBU</seg><seg>194 MB</seg></seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>Installation of Binutils</title>
- <para>The current version of Binutils in use has a bug that causes strip to
- remove necessary information from certain library files. This patch fixes
- the problem:</para>
- <screen><userinput>patch -Np1 -i ../binutils-&binutils-version;-fix_strip-1.patch</userinput></screen>
- <screen><userinput>mkdir ../binutils-build
- cd ../binutils-build</userinput></screen>
- <note><para>If you want the SBU values you could wrap the four commands in a
- <command>time</command> command like this:
- <userinput>time { ./configure ... && ... && ...
- && make install; }</userinput>.</para></note>
- <para>Now prepare Binutils for compilation:</para>
- <screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools --disable-nls</userinput></screen>
- <para>Continue with compiling the package:</para>
- <screen><userinput>make configure-host
- make LDFLAGS="-all-static"</userinput></screen>
- <para>Now install the package:</para>
- <screen><userinput>make install</userinput></screen>
- <para>Now prepare the linker for the <quote>Adjusting</quote> phase later on:</para>
- <screen><userinput>make -C ld clean
- make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
- <warning><para><emphasis>Do not yet remove</emphasis> the Binutils build and
- source directories. You will need them again in their current state a bit
- further on in this chapter.</para></warning>
- </sect2>
- </sect1>
|