source: clfs-embedded/BOOK/cross-tools/common/gcc-final.xml@ 7afc252

Last change on this file since 7afc252 was bd0ad10, checked in by Andrew Bradford <bradfa@…>, 14 years ago

Created MIPS and ARM GCC-Final files & cleanup

x86 is no longer common with MIPS and ARM for GCC-Final so it got its own
GCC-Final file. In order to reduce duplication between x86 GCC-Final
and the common GCC-Final, now MIPS and ARM also have their own GCC-Final
files, too.

In this way, everything that's common to all architectures goes in the
common GCC-Final file and each arch can do their own thing.
This will become more important once we start building GCC for a specific
processor, the ARM and MIPS configure lines will diverge.

* PLEASE NOTE *: This commit un-breaks GCC-Final for x86.
Feel free to merge.

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