mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-07 06:41:59 +00:00
17700191e9
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4603 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
59 lines
1.8 KiB
XML
59 lines
1.8 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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"?>
|
|
|
|
<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>Create a build dir:</para>
|
|
|
|
<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>
|