mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
3f0c882398
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4446 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
73 lines
2.1 KiB
XML
73 lines
2.1 KiB
XML
<?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-system-binutils" xreflabel="Binutils" role="wrap">
|
|
<title>Binutils-&binutils-version;</title>
|
|
<?dbhtml filename="binutils.html"?>
|
|
|
|
<indexterm zone="ch-system-binutils"><primary sortas="a-Binutils">Binutils</primary></indexterm>
|
|
|
|
<sect2 role="package"><title/>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>1.4 SBU</seg><seg>167 MB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Binutils</title>
|
|
|
|
<para>Check if there is PTYs for the test suites:</para>
|
|
|
|
<screen><userinput>expect -c "spawn ls"</userinput></screen>
|
|
|
|
<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>
|
|
|
|
<para>Create the build directory:</para>
|
|
|
|
<screen><userinput>mkdir ../binutils-build
|
|
cd ../binutils-build</userinput></screen>
|
|
|
|
<para>Now prepare Binutils for compilation:</para>
|
|
|
|
<screen><userinput>../binutils-&binutils-version;/configure --prefix=/usr --enable-shared</userinput></screen>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make tooldir=/usr</userinput></screen>
|
|
|
|
<para>Test the results:</para>
|
|
|
|
<screen><userinput>make -k check</userinput></screen>
|
|
|
|
<para>The test suite notes from <xref linkend="ch-tools-binutils-pass2"/> are still
|
|
very much appropriate here..</para>
|
|
|
|
<para>Install the package:</para>
|
|
|
|
<screen><userinput>make tooldir=/usr install</userinput></screen>
|
|
|
|
<para>Install the <filename class="headerfile">libiberty</filename> header file:</para>
|
|
|
|
<screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /usr/include</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="contents-binutils" role="content"><title>Contents of Binutils</title>
|
|
|
|
<para>See testing</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|