2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2005-01-30 18:06:48 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect1 id="ch-tools-binutils-pass1" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Binutils-&binutils-version; - Pass 1</title>
|
|
|
|
<?dbhtml filename="binutils-pass1.html"?>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>1.0 SBU</seg><seg>194 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
</sect2>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-16 01:06:08 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Binutils</title>
|
|
|
|
|
2004-12-26 00:39:40 +00:00
|
|
|
<para>Create a build dir:</para>
|
2004-12-22 12:06:22 +00:00
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<screen><userinput>mkdir ../binutils-build
|
|
|
|
cd ../binutils-build</userinput></screen>
|
|
|
|
|
2004-12-20 16:38:42 +00:00
|
|
|
<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 ... && ... && ...
|
2004-02-25 22:04:14 +00:00
|
|
|
&& make install; }</userinput>.</para></note>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Now prepare Binutils for compilation:</para>
|
|
|
|
|
2005-01-30 12:51:22 +00:00
|
|
|
<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
|
|
|
|
--disable-nls</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make configure-host
|
|
|
|
make LDFLAGS="-all-static"</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now install the package:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Now prepare the linker for the <quote>Adjusting</quote> phase later on:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make -C ld clean
|
|
|
|
make -C ld LDFLAGS="-all-static" LIB_PATH=/tools/lib</userinput></screen>
|
|
|
|
|
2004-02-11 22:02:32 +00:00
|
|
|
<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>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-05-08 15:30:32 +01:00
|
|
|
</sect2>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2003-05-02 19:20:20 +01:00
|
|
|
</sect1>
|