source: BOOK/cross-tools/sparc/binutils.xml@ 62e9ea6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 62e9ea6 was 6aad380, checked in by Jim Gifford <clfs@…>, 19 years ago

r677@server (orig r675): manuel | 2005-11-10 03:13:57 -0800
Including patches.ent from general.ent

  • Property mode set to 100644
File size: 5.4 KB
Line 
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
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/binutils.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
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/sparc/binutils.xml"
32 xpointer="xpointer(//*[@os='s1'])"/>
33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../../final-system/sparc/binutils.xml"
36 xpointer="xpointer(//*[@os='s2'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../../final-system/sparc/binutils.xml"
40 xpointer="xpointer(//*[@os='s3'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../../final-system/sparc/binutils.xml"
44 xpointer="xpointer(//*[@os='s4'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../../final-system/common/binutils.xml"
48 xpointer="xpointer(//*[@os='g'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="../../final-system/common/binutils.xml"
52 xpointer="xpointer(//*[@os='h'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../../final-system/common/binutils.xml"
56 xpointer="xpointer(//*[@os='i'])"/>
57
58<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
59 --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
60 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen>
61
62 <variablelist os="bd">
63 <title>The meaning of the configure options:</title>
64
65 <varlistentry os="bd1">
66 <term><parameter>--prefix=/cross-tools</parameter></term>
67 <listitem>
68 <para>This tells the configure script to prepare to install the
69 package in the <filename class="directory">/cross-tools</filename>
70 directory.</para>
71 </listitem>
72 </varlistentry>
73
74 <varlistentry os="bd2">
75 <term><parameter>--host=${LFS_HOST}</parameter></term>
76 <listitem>
77 <para>This do ...</para>
78 </listitem>
79 </varlistentry>
80
81 <varlistentry os="bd3">
82 <term><parameter>--target=${LFS_TARGET}</parameter></term>
83 <listitem>
84 <para>This do ...</para>
85 </listitem>
86 </varlistentry>
87
88 <varlistentry os="bd4">
89 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
90 <listitem>
91 <para>This tells the configure script to specify the library
92 search path during the compilation of Binutils, resulting in
93 <filename class="directory">/tools/lib</filename> being passed
94 to the linker. This prevents the linker from searching through
95 library directories on the host.</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry os="bd5">
100 <term><parameter>--disable-nls</parameter></term>
101 <listitem>
102 <para>This disables internationalization as i18n is not needed for the
103 cross-compile tools.</para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry os="bd6">
108 <term><parameter>--enable-shared</parameter></term>
109 <listitem>
110 <para>Enable the creation of the shared libraries.</para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry os="bd7">
115 <term><parameter>--enable-64-bit-bfd</parameter></term>
116 <listitem>
117 <para>This adds 64 bit support to our toolchain.</para>
118 </listitem>
119 </varlistentry>
120
121 </variablelist>
122
123 <para os="be">Compile the package:</para>
124
125<screen os="bf"><userinput>make configure-host
126make headers -C bfd
127make</userinput></screen>
128
129 <variablelist os="bf1">
130 <title>The meaning of the make options:</title>
131
132 <varlistentry>
133 <term><parameter>configure-host</parameter></term>
134 <listitem>
135 <para>This do ...</para>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry>
140 <term><parameter>headers -C bfd</parameter></term>
141 <listitem>
142 <para>This do ...</para>
143 </listitem>
144 </varlistentry>
145
146 </variablelist>
147
148 <para os="bg">Install the package:</para>
149
150<screen os="bh"><userinput>make install</userinput></screen>
151
152 <para os="bi">Copy <filename class="headerfile">libiberty.h</filename> file to
153 <filename class="directory">/tools/include</filename> directory:</para>
154
155<screen os="bj"><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
156
157 </sect2>
158
159 <sect2 role="content">
160 <title/>
161
162 <para>Details on this package are located in <xref
163 linkend="contents-binutils" role="."/></para>
164
165 </sect2>
166
167</sect1>
Note: See TracBrowser for help on using the repository browser.