source: clfs-sysroot/BOOK/cross-tools/common/binutils.xml@ 9c8c5a8

Last change on this file since 9c8c5a8 was 9db6797, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Remove the posix patches from GCC and Binutils.

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