source: clfs-sysroot/BOOK/cross-tools/common/binutils.xml@ 625455a

Last change on this file since 625455a was fef8487, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Even More Text Updates.

  • Property mode set to 100644
File size: 5.5 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[02095ae]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="da">It is important that Binutils be the first package compiled
[fef8487]26 because both EGLIBC and GCC perform various tests on the available
[02095ae]27 linker and assembler to determine which of their own features to
28 enable.</para>
29
[7126617]30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../../final-system/common/binutils.xml"
32 xpointer="xpointer(//*[@os='p1'])"/>
[02095ae]33
[7126617]34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../../final-system/common/binutils.xml"
36 xpointer="xpointer(//*[@os='p2'])"/>
[02095ae]37
[c2e251c]38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../../final-system/common/binutils.xml"
40 xpointer="xpointer(//*[@os='p3'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../../final-system/common/binutils.xml"
44 xpointer="xpointer(//*[@os='p4'])"/>
45
[02095ae]46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../../final-system/common/binutils.xml"
[1f0a9c9]48 xpointer="xpointer(//*[@os='a'])"/>
[02095ae]49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="../../final-system/common/binutils.xml"
[1f0a9c9]52 xpointer="xpointer(//*[@os='b'])"/>
[02095ae]53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../../final-system/common/binutils.xml"
[1f0a9c9]56 xpointer="xpointer(//*[@os='c'])"/>
[02095ae]57
[4aa6b68]58<screen os="bc"><userinput>AR=ar AS=as ../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \
[586feb7]59 --host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS} \
[02095ae]60 --disable-nls --enable-shared --disable-multilib</userinput></screen>
61
62 <variablelist os="bd">
63 <title>The meaning of the configure options:</title>
64
65 <varlistentry os="bd1">
[586feb7]66 <term><parameter>--prefix=${CLFS}/cross-tools</parameter></term>
[02095ae]67 <listitem>
68 <para>This tells the configure script to prepare to install the
[586feb7]69 package in the <filename class="directory">${CLFS}/cross-tools</filename>
[02095ae]70 directory.</para>
71 </listitem>
72 </varlistentry>
73
74 <varlistentry os="bd2">
[586feb7]75 <term><parameter>--host=${CLFS_HOST}</parameter></term>
[02095ae]76 <listitem>
77 <para>When used with --target, this creates a cross-architecture
[823185c]78 executable that creates files for ${CLFS_TARGET} but runs on
79 ${CLFS_HOST}.</para>
[02095ae]80 </listitem>
81 </varlistentry>
82
83 <varlistentry os="bd3">
[586feb7]84 <term><parameter>--target=${CLFS_TARGET}</parameter></term>
[02095ae]85 <listitem>
86 <para>When used with --host, this creates a cross-architecture
[823185c]87 executable that creates files for ${CLFS_TARGET} but runs on
88 ${CLFS_HOST}.</para>
[02095ae]89 </listitem>
90 </varlistentry>
91
92 <varlistentry os="bd4">
[586feb7]93 <term><parameter>--with-sysroot=${CLFS}</parameter></term>
[02095ae]94 <listitem>
[586feb7]95 <para>This tells configure that ${CLFS} is going to be the root
[823185c]96 of our system. It will now use the specified sysroot, ${CLFS}, as
[02095ae]97 a prefix of the default search paths.</para>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry os="bd5">
102 <term><parameter>--disable-nls</parameter></term>
103 <listitem>
104 <para>This disables internationalization as i18n is not needed for the
105 cross-compile tools.</para>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry os="bd6">
110 <term><parameter>--enable-shared</parameter></term>
111 <listitem>
112 <para>Enable the creation of the shared libraries.</para>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry os="bd7">
117 <term><parameter>--disable-multilib</parameter></term>
118 <listitem>
119 <para>This option disables the building of a multilib
[c8e9ef0]120 capable Binutils.</para>
[02095ae]121 </listitem>
122 </varlistentry>
123
124 </variablelist>
125
126 <para os="be">Compile the package:</para>
127
128<screen os="bf"><userinput>make configure-host
129make</userinput></screen>
130
131 <variablelist os="bg">
132 <title>The meaning of the make options:</title>
133
134 <varlistentry os="bg1">
135 <term><parameter>configure-host</parameter></term>
136 <listitem>
137 <para>This checks the host environment and makes sure all the
[d5d4d82]138 necessary tools are available to compile Binutils.</para>
[02095ae]139 </listitem>
140 </varlistentry>
141
142 </variablelist>
143
144 <para os="bh">Install the package:</para>
145
146<screen os="bi"><userinput>make install</userinput></screen>
147
[0de6e24]148 <para os="bj">Install the <filename class="headerfile">libiberty</filename> header
149 file that is needed by some packages:</para>
[02095ae]150
[586feb7]151<screen os="bk"><userinput>cp -v ../binutils-&binutils-version;/include/libiberty.h ${CLFS}/usr/include</userinput></screen>
[02095ae]152
153 </sect2>
154
155 <sect2 role="content">
156 <title/>
157
158 <para>Details on this package are located in <xref
159 linkend="contents-binutils" role="."/></para>
160
161 </sect2>
162
163</sect1>
Note: See TracBrowser for help on using the repository browser.