source: clfs-embedded/BOOK/cross-tools/x86/gcc-final.xml@ 7003296

Last change on this file since 7003296 was 1fd00ea, checked in by Andrew Bradford <bradfa@…>, 14 years ago

Using --disable-multilib when building GCC for x86

Should produce a GCC that only compiles for i*86 XOR x86_64 targets.
See mailing list thread:
http://lists.cross-lfs.org/pipermail/clfs-dev-cross-lfs.org/2011-February/000895.html

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[9f0beb0]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-gcc-final" role="wrap">
9 <?dbhtml filename="gcc-final.html"?>
10
11 <title>GCC-&gcc-version; - Cross Compiler Final</title>
12
13 <indexterm zone="ch-cross-tools-gcc-final">
14 <primary sortas="a-GCC">GCC</primary>
15 <secondary>cross tools, final</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../common/gcc-static.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of GCC Cross Compiler</title>
24
25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
26 href="../common/gcc-static.xml"
27 xpointer="xpointer(//*[@os='c'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
30 href="../common/gcc-static.xml"
31 xpointer="xpointer(//*[@os='d'])"/>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../common/gcc-static.xml"
35 xpointer="xpointer(//*[@os='e'])"/>
36
37<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
38 ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
39 --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
40 --with-sysroot=${CLFS} --disable-nls --enable-shared \
41 --enable-languages=c --enable-c99 --enable-long-long \
42 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
[1fd00ea]43 --with-mpc=${CLFS}/cross-tools --with-arch=${CLFS_CPU} \
44 --disable-multilib</userinput></screen>
[9f0beb0]45
46 <variablelist os="af">
47 <title>The meaning of the configure options not used previously:</title>
48
49 <varlistentry os="af1">
50 <term><parameter>--enable-shared</parameter></term>
51 <listitem>
52 <para>Enables the creation of the shared libraries.</para>
53 </listitem>
54 </varlistentry>
55
56 <varlistentry os="af2">
57 <term><parameter>--enable-c99</parameter></term>
58 <listitem>
59 <para>Enable C99 support for C programs.</para>
60 </listitem>
61 </varlistentry>
62
63 <varlistentry os="af3">
64 <term><parameter>--enable-long-long</parameter></term>
65 <listitem>
66 <para>Enables long long support in the compiler.</para>
67 </listitem>
68 </varlistentry>
69
70 </variablelist>
71
72 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
73 href="gcc-static.xml"
74 xpointer="xpointer(//*[@os='ag'])"/>
75
76<screen os="ah"><userinput>make</userinput></screen>
77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="../common/gcc-static.xml"
80 xpointer="xpointer(//*[@os='ai'])"/>
81
82<screen os="aj"><userinput>make install</userinput></screen>
83
84 </sect2>
85
86 <sect2 id="contents-gcc" role="content">
87 <title>Contents of GCC</title>
88
89 <segmentedlist>
90 <segtitle>Installed programs</segtitle>
91 <segtitle>Installed libraries</segtitle>
92
93 <seglistitem>
94 <seg>cc (link to gcc), gcc, gccbug, and gcov</seg>
95 <seg>libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so],
96 and libmudflapth.[a,so]</seg>
97 </seglistitem>
98 </segmentedlist>
99
100 <variablelist>
101 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102 <?dbfo list-presentation="list"?>
103 <?dbhtml list-presentation="table"?>
104
105 <varlistentry id="cc">
106 <term><command>cc</command></term>
107 <listitem>
108 <para>The C compiler</para>
109 <indexterm zone="ch-cross-tools-gcc-final cc">
110 <primary sortas="b-cc">cc</primary>
111 </indexterm>
112 </listitem>
113 </varlistentry>
114
115 <varlistentry id="gcc">
116 <term><command>gcc</command></term>
117 <listitem>
118 <para>The C compiler</para>
119 <indexterm zone="ch-cross-tools-gcc-final gcc">
120 <primary sortas="b-gcc">gcc</primary>
121 </indexterm>
122 </listitem>
123 </varlistentry>
124
125 <varlistentry id="gccbug">
126 <term><command>gccbug</command></term>
127 <listitem>
128 <para>A shell script used to help create useful bug reports</para>
129 <indexterm zone="ch-cross-tools-gcc-final gccbug">
130 <primary sortas="b-gccbug">gccbug</primary>
131 </indexterm>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry id="gcov">
136 <term><command>gcov</command></term>
137 <listitem>
138 <para>A coverage testing tool; it is used to analyze programs to
139 determine where optimizations will have the most effect</para>
140 <indexterm zone="ch-cross-tools-gcc-final gcov">
141 <primary sortas="b-gcov">gcov</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="libgcc">
147 <term><filename class="libraryfile">libgcc</filename></term>
148 <listitem>
149 <para>Contains run-time support for <command>gcc</command></para>
150 <indexterm zone="ch-cross-tools-gcc-final libgcc">
151 <primary sortas="c-libgcc*">libgcc*</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="libmudflap">
157 <term><filename class="libraryfile">libmudflap</filename></term>
158 <listitem>
159 <para>The libmudflap libraries are used by GCC for instrumenting
160 pointer and array dereferencing operations.</para>
161 <indexterm zone="ch-cross-tools-gcc-final libmudflap">
162 <primary sortas="c-libmudflap*">libmudflap*</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 </variablelist>
168
169 </sect2>
170
171</sect1>
Note: See TracBrowser for help on using the repository browser.