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

Last change on this file since bd0ad10 was bd0ad10, checked in by Andrew Bradford <bradfa@…>, 13 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: 3.1 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<!-- x86 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 xmlns:xi="http://www.w3.org/2003/XInclude"
21  href="../common/gcc-final.xml"
22  xpointer="xpointer(//*[@role='package'])"/>
23
24  <sect2 role="installation">
25    <title>Installation of GCC Cross Compiler</title>
26
27    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28    href="../common/gcc-final.xml"
29    xpointer="xpointer(//*[@os='c'])"/>
30
31    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32    href="../common/gcc-final.xml"
33    xpointer="xpointer(//*[@os='d'])"/>
34
35    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36    href="../common/gcc-final.xml"
37    xpointer="xpointer(//*[@os='e'])"/>
38
39<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
40  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
41  --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \
42  --with-sysroot=${CLFS} --disable-nls --enable-shared \
43  --enable-languages=c --enable-c99 --enable-long-long \
44  --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
45  --with-mpc=${CLFS}/cross-tools --with-arch=${CLFS_CPU} \
46  --disable-multilib</userinput></screen>
47
48    <variablelist os="af">
49      <title>The meaning of the configure options not used previously:</title>
50
51      <varlistentry os="af1">
52        <term><parameter>--enable-shared</parameter></term>
53        <listitem>
54          <para>Enables the creation of the shared libraries.</para>
55        </listitem>
56      </varlistentry>
57
58      <varlistentry os="af2">
59        <term><parameter>--enable-c99</parameter></term>
60        <listitem>
61          <para>Enable C99 support for C programs.</para>
62        </listitem>
63      </varlistentry>
64
65      <varlistentry os="af3">
66        <term><parameter>--enable-long-long</parameter></term>
67        <listitem>
68          <para>Enables long long support in the compiler.</para>
69        </listitem>
70      </varlistentry>
71
72    </variablelist>
73
74    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
75    href="../common/gcc-final.xml"
76    xpointer="xpointer(//*[@os='ah'])"/>
77
78    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79    href="../common/gcc-final.xml"
80    xpointer="xpointer(//*[@os='ai'])"/>
81
82    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
83    href="../common/gcc-final.xml"
84    xpointer="xpointer(//*[@os='aj'])"/>
85
86    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87    href="../common/gcc-final.xml"
88    xpointer="xpointer(//*[@os='ak'])"/>
89
90  </sect2>
91
92    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
93    href="../common/gcc-final.xml"
94    xpointer="xpointer(//*[@role='content'])"/>
95
96</sect1>
Note: See TracBrowser for help on using the repository browser.