source: BOOK/cross-tools/common/binutils.xml@ f9e40f7

sysvinit
Last change on this file since f9e40f7 was b27081c4, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[cf66ceae]19 href="../../final-system/common/binutils.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
23 <title>Installation of Cross Binutils</title>
24
[292caee]25 <para os="da">It is important that Binutils be compiled before Glibc and
26 GCC because both Glibc and GCC perform various tests on the available
[eba8490]27 linker and assembler to determine which of their own features to
28 enable.</para>
29
[e61fedb]30<!-- Branch update patch area
[3e0fdeb]31 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
32 href="../../final-system/common/binutils.xml"
33 xpointer="xpointer(//*[@os='p1'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
36 href="../../final-system/common/binutils.xml"
37 xpointer="xpointer(//*[@os='p2'])"/>
[e61fedb]38-->
[b8a33e3]39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
40 href="../../final-system/common/binutils.xml"
[3f8be484]41 xpointer="xpointer(//*[@os='g'])"/>
42
[dabbced]43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]44 href="../../final-system/common/binutils.xml"
45 xpointer="xpointer(//*[@os='h'])"/>
46
[dabbced]47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]48 href="../../final-system/common/binutils.xml"
49 xpointer="xpointer(//*[@os='i'])"/>
50
[b27081c4]51<screen os="bc"><userinput>AR=ar AS=as \
52../binutils-&binutils-dir;/configure \
53 --prefix=/cross-tools \
54 --host=${CLFS_HOST} \
55 --target=${CLFS_TARGET} \
56 --with-sysroot=${CLFS} \
57 --with-lib-path=/tools/lib \
58 --disable-nls \
59 --disable-static \
60 --disable-multilib \
61 --enable-gold=yes \
62 --enable-plugins \
63 --enable-threads \
64 --disable-werror</userinput></screen>
[3f8be484]65
66 <variablelist os="bd">
[5cbf8bc]67 <title>The meaning of the new configure options:</title>
[3f8be484]68
[5cbf8bc]69 <varlistentry os="bd1">
[bd27efe]70 <term><parameter>AR=ar AS=as</parameter></term>
71 <listitem>
72 <para>This prevents Binutils from compiling with ${CLFS_HOST}-ar
73 and ${CLFS_HOST}-as as they are provided by this package and therefore
74 not installed yet.</para>
75 </listitem>
76 </varlistentry>
77
[3f8be484]78 <varlistentry os="bd2">
[bc2e3fa]79 <term><parameter>--host=${CLFS_HOST}</parameter></term>
[3f8be484]80 <listitem>
[1407403]81 <para>When used with <option>--target</option>, this creates a
82 cross-architecture executable which creates files for
83 ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
[3f8be484]84 </listitem>
85 </varlistentry>
86
87 <varlistentry os="bd3">
[bc2e3fa]88 <term><parameter>--target=${CLFS_TARGET}</parameter></term>
[3f8be484]89 <listitem>
[1407403]90 <para>When used with <option>--host</option>, this creates a
91 cross-architecture executable that creates files for
92 ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
[3f8be484]93 </listitem>
94 </varlistentry>
95
96 <varlistentry os="bd4">
[395af5a]97 <term><parameter>--with-sysroot=${CLFS}</parameter></term>
98 <listitem>
99 <para>Tells configure to build a linker that uses ${CLFS} as its
100 root directory for its search paths.</para>
101 </listitem>
102 </varlistentry>
103
104 <varlistentry os="bd5">
[bc2e3fa]105 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
[3f8be484]106 <listitem>
[bc2e3fa]107 <para>This tells the configure script to specify the library
108 search path during the compilation of Binutils, resulting in
109 <filename class="directory">/tools/lib</filename> being passed
110 to the linker. This prevents the linker from searching through
111 library directories on the host.</para>
[3f8be484]112 </listitem>
113 </varlistentry>
114
[395af5a]115 <varlistentry os="bd6">
[3f8be484]116 <term><parameter>--disable-nls</parameter></term>
117 <listitem>
118 <para>This disables internationalization as i18n is not needed for the
119 cross-compile tools.</para>
120 </listitem>
121 </varlistentry>
122
[395af5a]123 <varlistentry os="bd7">
[ed8de1a]124 <term><parameter>--disable-multilib</parameter></term>
125 <listitem>
[8659630]126 <para>This option disables the building of a multilib
[3d11ab9]127 capable Binutils.</para>
[3f8be484]128 </listitem>
129 </varlistentry>
130
[395af5a]131 <varlistentry os="bd8">
[e4130d2]132 <term><parameter>--disable-werror</parameter></term>
[d3b105f]133 <listitem>
134 <para>This prevents the build from stopping in the event that there
135 are warnings from the host's compiler.</para>
136 </listitem>
137 </varlistentry>
[e4130d2]138
[65db39d]139 <varlistentry os="bd10">
[bcda234]140 <term><parameter>--enable-gold=yes</parameter></term>
141 <listitem>
142 <para>This option enables the building of the gold linker.</para>
143 </listitem>
144 </varlistentry>
145
[65db39d]146 <varlistentry os="bd11">
[bcda234]147 <term><parameter>--enable-plugins</parameter></term>
148 <listitem>
149 <para>This option enables support for plugins.</para>
150 </listitem>
151 </varlistentry>
152
[65db39d]153 <varlistentry os="bd12">
[bcda234]154 <term><parameter>--enable-threads</parameter></term>
155 <listitem>
156 <para>This option enables multi-threaded linking for the gold linker.</para>
157 </listitem>
158 </varlistentry>
159
[3f8be484]160 </variablelist>
161
162 <para os="be">Compile the package:</para>
163
[3eaa352a]164<screen os="bf"><userinput>make</userinput></screen>
[3f8be484]165
[ed8de1a]166 <para os="bh">Install the package:</para>
[3f8be484]167
[ed8de1a]168<screen os="bi"><userinput>make install</userinput></screen>
[3f8be484]169
170 </sect2>
171
172 <sect2 role="content">
173 <title/>
174
175 <para>Details on this package are located in <xref
176 linkend="contents-binutils" role="."/></para>
177
178 </sect2>
179
180</sect1>
Note: See TracBrowser for help on using the repository browser.