[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a9e389d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[bd0ad10] | 8 | <!-- Common GCC-Final -->
|
---|
| 9 |
|
---|
[a9e389d] | 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 |
|
---|
[bd0ad10] | 20 | <xi:include role="package" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 21 | href="gcc-static.xml"
|
---|
| 22 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="installation">
|
---|
| 25 | <title>Installation of GCC Cross Compiler</title>
|
---|
| 26 |
|
---|
[bd0ad10] | 27 | <xi:include os="c" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 28 | href="gcc-static.xml"
|
---|
| 29 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 30 |
|
---|
[bd0ad10] | 31 | <xi:include os="d" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 32 | href="gcc-static.xml"
|
---|
| 33 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 34 |
|
---|
[bd0ad10] | 35 | <xi:include os="e" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 36 | href="gcc-static.xml"
|
---|
| 37 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 38 |
|
---|
[d38764e] | 39 | <note os="f"><para>If you would like to build a C++ compiler in addition
|
---|
| 40 | to the C compiler, change the following --enable-languages=c option to be
|
---|
[3961d27] | 41 | --enable-languages=c,c++ instead. A C++ compiler is not required for
|
---|
[d38764e] | 42 | any of the software included in this book.</para></note>
|
---|
| 43 |
|
---|
[bd0ad10] | 44 | <!-- This is the common configure line for GCC-Final -->
|
---|
| 45 | <!-- It's not actually used by any arch but is here for reference. -->
|
---|
[35e0963] | 46 | <screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
|
---|
| 47 | ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
|
---|
[e1b2402] | 48 | --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
|
---|
| 49 | --with-sysroot=${CLFS} --disable-nls --enable-shared \
|
---|
| 50 | --enable-languages=c --enable-c99 --enable-long-long \
|
---|
[65b296c] | 51 | --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
|
---|
[a20c17d] | 52 | --with-mpc=${CLFS}/cross-tools --disable-multilib</userinput></screen>
|
---|
[a9e389d] | 53 |
|
---|
| 54 | <variablelist os="af">
|
---|
[65b296c] | 55 | <title>The meaning of the configure options not used previously:</title>
|
---|
[a9e389d] | 56 |
|
---|
| 57 | <varlistentry os="af1">
|
---|
[65b296c] | 58 | <term><parameter>--enable-shared</parameter></term>
|
---|
[a9e389d] | 59 | <listitem>
|
---|
[65b296c] | 60 | <para>Enables the creation of the shared libraries.</para>
|
---|
[a9e389d] | 61 | </listitem>
|
---|
| 62 | </varlistentry>
|
---|
| 63 |
|
---|
| 64 | <varlistentry os="af2">
|
---|
| 65 | <term><parameter>--enable-c99</parameter></term>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Enable C99 support for C programs.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
[e1b2402] | 71 | <varlistentry os="af3">
|
---|
[a9e389d] | 72 | <term><parameter>--enable-long-long</parameter></term>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Enables long long support in the compiler.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | </variablelist>
|
---|
| 79 |
|
---|
[bd0ad10] | 80 | <xi:include os="ah" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 81 | href="gcc-static.xml"
|
---|
[ae51e2a] | 82 | xpointer="xpointer(//*[@os='ah'])"/>
|
---|
[a9e389d] | 83 |
|
---|
[bd0ad10] | 84 | <screen os="ai"><userinput>make</userinput></screen>
|
---|
[a9e389d] | 85 |
|
---|
[bd0ad10] | 86 | <xi:include os="aj" xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[a9e389d] | 87 | href="gcc-static.xml"
|
---|
[ae51e2a] | 88 | xpointer="xpointer(//*[@os='aj'])"/>
|
---|
[a9e389d] | 89 |
|
---|
[bd0ad10] | 90 | <screen os="ak"><userinput>make install</userinput></screen>
|
---|
[a9e389d] | 91 |
|
---|
[c98e933] | 92 | <para os="al">Some programs need <filename class="libraryfile">libgcc_s.so.1</filename>
|
---|
| 93 | to be included in the target file system. Copy it to the
|
---|
| 94 | <filename class="directory">${CLFS}/lib</filename> directory:</para>
|
---|
| 95 |
|
---|
| 96 | <screen os="am"><userinput>cp -v ${CLFS}/cross-tools/${CLFS_TARGET}/lib/libgcc_s.so.1 ${CLFS}/lib</userinput></screen>
|
---|
| 97 |
|
---|
[a9e389d] | 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 id="contents-gcc" role="content">
|
---|
| 101 | <title>Contents of GCC</title>
|
---|
| 102 |
|
---|
| 103 | <segmentedlist>
|
---|
| 104 | <segtitle>Installed programs</segtitle>
|
---|
| 105 | <segtitle>Installed libraries</segtitle>
|
---|
| 106 |
|
---|
| 107 | <seglistitem>
|
---|
[e1b2402] | 108 | <seg>cc (link to gcc), gcc, gccbug, and gcov</seg>
|
---|
[a9e389d] | 109 | <seg>libgcc.a, libgcc_eh.a, libgcc_s.so, libmudflap.[a,so],
|
---|
[e1b2402] | 110 | and libmudflapth.[a,so]</seg>
|
---|
[a9e389d] | 111 | </seglistitem>
|
---|
| 112 | </segmentedlist>
|
---|
| 113 |
|
---|
| 114 | <variablelist>
|
---|
| 115 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 116 | <?dbfo list-presentation="list"?>
|
---|
| 117 | <?dbhtml list-presentation="table"?>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="cc">
|
---|
| 120 | <term><command>cc</command></term>
|
---|
| 121 | <listitem>
|
---|
| 122 | <para>The C compiler</para>
|
---|
[6561a0f] | 123 | <indexterm zone="ch-cross-tools-gcc-final cc">
|
---|
[a9e389d] | 124 | <primary sortas="b-cc">cc</primary>
|
---|
| 125 | </indexterm>
|
---|
| 126 | </listitem>
|
---|
| 127 | </varlistentry>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="gcc">
|
---|
| 130 | <term><command>gcc</command></term>
|
---|
| 131 | <listitem>
|
---|
| 132 | <para>The C compiler</para>
|
---|
[6561a0f] | 133 | <indexterm zone="ch-cross-tools-gcc-final gcc">
|
---|
[a9e389d] | 134 | <primary sortas="b-gcc">gcc</primary>
|
---|
| 135 | </indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | <varlistentry id="gccbug">
|
---|
| 140 | <term><command>gccbug</command></term>
|
---|
| 141 | <listitem>
|
---|
| 142 | <para>A shell script used to help create useful bug reports</para>
|
---|
[6561a0f] | 143 | <indexterm zone="ch-cross-tools-gcc-final gccbug">
|
---|
[a9e389d] | 144 | <primary sortas="b-gccbug">gccbug</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="gcov">
|
---|
| 150 | <term><command>gcov</command></term>
|
---|
| 151 | <listitem>
|
---|
| 152 | <para>A coverage testing tool; it is used to analyze programs to
|
---|
| 153 | determine where optimizations will have the most effect</para>
|
---|
[6561a0f] | 154 | <indexterm zone="ch-cross-tools-gcc-final gcov">
|
---|
[a9e389d] | 155 | <primary sortas="b-gcov">gcov</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | <varlistentry id="libgcc">
|
---|
| 161 | <term><filename class="libraryfile">libgcc</filename></term>
|
---|
| 162 | <listitem>
|
---|
| 163 | <para>Contains run-time support for <command>gcc</command></para>
|
---|
[6561a0f] | 164 | <indexterm zone="ch-cross-tools-gcc-final libgcc">
|
---|
[a9e389d] | 165 | <primary sortas="c-libgcc*">libgcc*</primary>
|
---|
| 166 | </indexterm>
|
---|
| 167 | </listitem>
|
---|
| 168 | </varlistentry>
|
---|
| 169 |
|
---|
| 170 | <varlistentry id="libmudflap">
|
---|
| 171 | <term><filename class="libraryfile">libmudflap</filename></term>
|
---|
| 172 | <listitem>
|
---|
| 173 | <para>The libmudflap libraries are used by GCC for instrumenting
|
---|
| 174 | pointer and array dereferencing operations.</para>
|
---|
[6561a0f] | 175 | <indexterm zone="ch-cross-tools-gcc-final libmudflap">
|
---|
[a9e389d] | 176 | <primary sortas="c-libmudflap*">libmudflap*</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | </variablelist>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | </sect1>
|
---|