source: cross-tools/common/binutils.xml@ 496be96

Last change on this file since 496be96 was 816c20d, checked in by Jim Gifford <clfs@…>, 19 years ago

r825@server (orig r823): jim | 2005-12-05 00:17:52 -0800

r925@server: jim | 2005-12-05 00:17:35 -0800
Text Updates. Thanx Chris Staub


  • Property mode set to 100644
File size: 5.0 KB
RevLine 
[bf8c11f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-binutils" role="wrap">
9 <?dbhtml filename="binutils.html"?>
10
11 <title>Cross Binutils-&binutils-version;</title>
12
13 <indexterm zone="ch-cross-tools-binutils">
14 <primary sortas="a-Binutils">Binutils</primary>
15 <secondary>cross tools</secondary>
16 </indexterm>
17
[48f8316]18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/binutils.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[bf8c11f]21
22 <sect2 role="installation">
23 <title>Installation of Cross Binutils</title>
24
25 <para os="ba">To make sure that the proper syntax is used for a couple of
26 tools, apply the following patch:</para>
27
28<screen os="bb"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
29
30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../../final-system/common/binutils.xml"
32 xpointer="xpointer(//*[@os='g'])"/>
33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../../final-system/common/binutils.xml"
36 xpointer="xpointer(//*[@os='h'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../../final-system/common/binutils.xml"
40 xpointer="xpointer(//*[@os='i'])"/>
41
42<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
43 --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
[816c20d]44 --disable-nls --enable-shared --disable-multilib</userinput></screen>
[bf8c11f]45
46 <variablelist os="bd">
47 <title>The meaning of the configure options:</title>
48
49 <varlistentry os="bd1">
50 <term><parameter>--prefix=/cross-tools</parameter></term>
51 <listitem>
52 <para>This tells the configure script to prepare to install the
53 package in the <filename class="directory">/cross-tools</filename>
54 directory.</para>
55 </listitem>
56 </varlistentry>
57
58 <varlistentry os="bd2">
59 <term><parameter>--host=${LFS_HOST}</parameter></term>
60 <listitem>
[f32f537]61 <para>When used with --target, this creates a cross-architecture
[d65c6ef]62 executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
[bf8c11f]63 </listitem>
64 </varlistentry>
65
66 <varlistentry os="bd3">
67 <term><parameter>--target=${LFS_TARGET}</parameter></term>
68 <listitem>
[f32f537]69 <para>When used with --host, this creates a cross-architecture
[d65c6ef]70 executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
[bf8c11f]71 </listitem>
72 </varlistentry>
73
74 <varlistentry os="bd4">
75 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
76 <listitem>
77 <para>This tells the configure script to specify the library
78 search path during the compilation of Binutils, resulting in
79 <filename class="directory">/tools/lib</filename> being passed
80 to the linker. This prevents the linker from searching through
81 library directories on the host.</para>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry os="bd5">
86 <term><parameter>--disable-nls</parameter></term>
87 <listitem>
88 <para>This disables internationalization as i18n is not needed for the
89 cross-compile tools.</para>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry os="bd6">
94 <term><parameter>--enable-shared</parameter></term>
95 <listitem>
96 <para>Enable the creation of the shared libraries.</para>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry os="bd7">
[d65c6ef]101 <term><parameter>--disable-multilib</parameter></term>
102 <listitem>
103 <para>This options disables the building of a multilib
104 capable binutils.</para>
[bf8c11f]105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 <para os="be">Compile the package:</para>
111
112<screen os="bf"><userinput>make configure-host
113make</userinput></screen>
114
[d65c6ef]115 <variablelist os="bg">
[bf8c11f]116 <title>The meaning of the make options:</title>
117
[d65c6ef]118 <varlistentry os="bg1">
[bf8c11f]119 <term><parameter>configure-host</parameter></term>
120 <listitem>
[d65c6ef]121 <para>This checks the host environment and makes sure all the
122 necessary tools are available to compile binutils.</para>
[bf8c11f]123 </listitem>
124 </varlistentry>
125
126 </variablelist>
127
[d65c6ef]128 <para os="bh">Install the package:</para>
[bf8c11f]129
[d65c6ef]130<screen os="bi"><userinput>make install</userinput></screen>
[bf8c11f]131
[d65c6ef]132 <para os="bj">Copy <filename class="headerfile">libiberty.h</filename> file to
[bf8c11f]133 <filename class="directory">/tools/include</filename> directory:</para>
134
[d65c6ef]135<screen os="bk"><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
[bf8c11f]136
137 </sect2>
138
139 <sect2 role="content">
140 <title/>
141
142 <para>Details on this package are located in <xref
143 linkend="contents-binutils" role="."/></para>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.