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

systemd
Last change on this file since 0561245 was 7cd7f99, 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
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/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/2001/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 compiled before Glibc and
26 GCC because both Glibc and GCC perform various tests on the available
27 linker and assembler to determine which of their own features to
28 enable.</para>
29
30<!-- Branch update patch area
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'])"/>
38-->
39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
40 href="../../final-system/common/binutils.xml"
41 xpointer="xpointer(//*[@os='g'])"/>
42
43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
44 href="../../final-system/common/binutils.xml"
45 xpointer="xpointer(//*[@os='h'])"/>
46
47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
48 href="../../final-system/common/binutils.xml"
49 xpointer="xpointer(//*[@os='i'])"/>
50
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>
65
66 <variablelist os="bd">
67 <title>The meaning of the new configure options:</title>
68
69 <varlistentry os="bd1">
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
78 <varlistentry os="bd2">
79 <term><parameter>--host=${CLFS_HOST}</parameter></term>
80 <listitem>
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>
84 </listitem>
85 </varlistentry>
86
87 <varlistentry os="bd3">
88 <term><parameter>--target=${CLFS_TARGET}</parameter></term>
89 <listitem>
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>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry os="bd4">
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">
105 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
106 <listitem>
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>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry os="bd6">
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
123 <varlistentry os="bd7">
124 <term><parameter>--disable-multilib</parameter></term>
125 <listitem>
126 <para>This option disables the building of a multilib
127 capable Binutils.</para>
128 </listitem>
129 </varlistentry>
130
131 <varlistentry os="bd8">
132 <term><parameter>--disable-werror</parameter></term>
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>
138
139 <varlistentry os="bd10">
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
146 <varlistentry os="bd11">
147 <term><parameter>--enable-plugins</parameter></term>
148 <listitem>
149 <para>This option enables support for plugins.</para>
150 </listitem>
151 </varlistentry>
152
153 <varlistentry os="bd12">
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
160 </variablelist>
161
162 <para os="be">Compile the package:</para>
163
164<screen os="bf"><userinput>make</userinput></screen>
165
166 <para os="bh">Install the package:</para>
167
168<screen os="bi"><userinput>make install</userinput></screen>
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.