[02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/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="../../final-system/common/gcc.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="../../final-system/common/gcc.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 28 |
|
---|
| 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 30 | href="../../final-system/common/gcc.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
| 32 |
|
---|
| 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7126617] | 34 | href="../../final-system/common/gcc.xml"
|
---|
| 35 | xpointer="xpointer(//*[@os='p3'])"/>
|
---|
[02095ae] | 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7126617] | 38 | href="../../final-system/common/gcc.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='p4'])"/>
|
---|
[02095ae] | 40 |
|
---|
| 41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 42 | href="gcc-static.xml"
|
---|
| 43 | xpointer="xpointer(//*[@os='ac'])"/>
|
---|
| 44 |
|
---|
| 45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 46 | href="gcc-static.xml"
|
---|
| 47 | xpointer="xpointer(//*[@os='ad'])"/>
|
---|
| 48 |
|
---|
| 49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 50 | href="gcc-static.xml"
|
---|
[8e23f7c] | 51 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
[02095ae] | 52 |
|
---|
| 53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 54 | href="gcc-static.xml"
|
---|
[8e23f7c] | 55 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
[02095ae] | 56 |
|
---|
| 57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 58 | href="gcc-static.xml"
|
---|
[8e23f7c] | 59 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
[02095ae] | 60 |
|
---|
[2ad9b71] | 61 | <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${LFS}/cross-tools \
|
---|
[02095ae] | 62 | --host=${LFS_HOST} --target=${LFS_TARGET} --disable-multilib \
|
---|
[f6c417f] | 63 | --with-sysroot=${LFS} --disable-nls --enable-shared \
|
---|
| 64 | --enable-languages=c,c++ --enable-__cxa_atexit \
|
---|
[02095ae] | 65 | --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
|
---|
| 66 |
|
---|
| 67 | <variablelist os="af">
|
---|
| 68 | <title>The meaning of the new configure options:</title>
|
---|
| 69 |
|
---|
| 70 | <varlistentry os="af1">
|
---|
| 71 | <term><parameter>--enable-languages=c,c++</parameter></term>
|
---|
| 72 | <listitem>
|
---|
| 73 | <para>This option ensures that only the C and C++ compilers are built.</para>
|
---|
| 74 | </listitem>
|
---|
| 75 | </varlistentry>
|
---|
| 76 |
|
---|
| 77 | <varlistentry os="af2">
|
---|
| 78 | <term><parameter>--enable-__cxa_atexit</parameter></term>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>This option allows use of __cxa_atexit, rather than atexit,
|
---|
| 81 | to register C++ destructors for local statics and global objects
|
---|
| 82 | and is essential for fully standards-compliant handling of destructors.
|
---|
| 83 | It also affects the C++ ABI and therefore results in C++ shared libraries
|
---|
| 84 | and C++ programs that are interoperable with other Linux distributions.</para>
|
---|
| 85 | </listitem>
|
---|
| 86 | </varlistentry>
|
---|
| 87 |
|
---|
| 88 | <varlistentry os="af3">
|
---|
| 89 | <term><parameter>--enable-c99</parameter></term>
|
---|
| 90 | <listitem>
|
---|
| 91 | <para>Enable C99 support for C programs.</para>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry os="af4">
|
---|
| 96 | <term><parameter>--enable-long-long</parameter></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Enables long long support in the compiler.</para>
|
---|
| 99 | </listitem>
|
---|
| 100 | </varlistentry>
|
---|
| 101 |
|
---|
| 102 | <varlistentry os="af5">
|
---|
| 103 | <term><parameter>--enable-threads=posix</parameter></term>
|
---|
| 104 | <listitem>
|
---|
| 105 | <para>This enables C++ exception handling for multi-threaded code.</para>
|
---|
| 106 | </listitem>
|
---|
| 107 | </varlistentry>
|
---|
| 108 |
|
---|
| 109 | </variablelist>
|
---|
| 110 |
|
---|
| 111 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 112 | href="gcc-static.xml"
|
---|
| 113 | xpointer="xpointer(//*[@os='ag'])"/>
|
---|
| 114 |
|
---|
| 115 | <screen os="ah"><userinput>make</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 118 | href="gcc-static.xml"
|
---|
| 119 | xpointer="xpointer(//*[@os='ai'])"/>
|
---|
| 120 |
|
---|
| 121 | <screen os="aj"><userinput>make install</userinput></screen>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="content">
|
---|
| 126 | <title/>
|
---|
| 127 |
|
---|
| 128 | <para>Details on this package are located in <xref
|
---|
| 129 | linkend="contents-gcc" role="."/></para>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | </sect1>
|
---|