source: clfs-sysroot/BOOK/cross-tools/common/gcc-final.xml@ 673b687

Last change on this file since 673b687 was dbab86c, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated GCC to 4.1.2.

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[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"
34 href="gcc-static.xml"
35 xpointer="xpointer(//*[@os='ac'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="gcc-static.xml"
39 xpointer="xpointer(//*[@os='ad'])"/>
40
41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="gcc-static.xml"
[8e23f7c]43 xpointer="xpointer(//*[@os='c'])"/>
[02095ae]44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="gcc-static.xml"
[8e23f7c]47 xpointer="xpointer(//*[@os='d'])"/>
[02095ae]48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="gcc-static.xml"
[8e23f7c]51 xpointer="xpointer(//*[@os='e'])"/>
[02095ae]52
[586feb7]53<screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
54 --host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \
55 --with-sysroot=${CLFS} --disable-nls --enable-shared \
[f6c417f]56 --enable-languages=c,c++ --enable-__cxa_atexit \
[02095ae]57 --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
58
59 <variablelist os="af">
60 <title>The meaning of the new configure options:</title>
61
62 <varlistentry os="af1">
63 <term><parameter>--enable-languages=c,c++</parameter></term>
64 <listitem>
65 <para>This option ensures that only the C and C++ compilers are built.</para>
66 </listitem>
67 </varlistentry>
68
69 <varlistentry os="af2">
70 <term><parameter>--enable-__cxa_atexit</parameter></term>
71 <listitem>
72 <para>This option allows use of __cxa_atexit, rather than atexit,
73 to register C++ destructors for local statics and global objects
74 and is essential for fully standards-compliant handling of destructors.
75 It also affects the C++ ABI and therefore results in C++ shared libraries
76 and C++ programs that are interoperable with other Linux distributions.</para>
77 </listitem>
78 </varlistentry>
79
80 <varlistentry os="af3">
81 <term><parameter>--enable-c99</parameter></term>
82 <listitem>
83 <para>Enable C99 support for C programs.</para>
84 </listitem>
85 </varlistentry>
86
87 <varlistentry os="af4">
88 <term><parameter>--enable-long-long</parameter></term>
89 <listitem>
90 <para>Enables long long support in the compiler.</para>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry os="af5">
95 <term><parameter>--enable-threads=posix</parameter></term>
96 <listitem>
97 <para>This enables C++ exception handling for multi-threaded code.</para>
98 </listitem>
99 </varlistentry>
100
101 </variablelist>
102
103 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
104 href="gcc-static.xml"
105 xpointer="xpointer(//*[@os='ag'])"/>
106
107<screen os="ah"><userinput>make</userinput></screen>
108
109 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
110 href="gcc-static.xml"
111 xpointer="xpointer(//*[@os='ai'])"/>
112
113<screen os="aj"><userinput>make install</userinput></screen>
114
115 </sect2>
116
117 <sect2 role="content">
118 <title/>
119
120 <para>Details on this package are located in <xref
121 linkend="contents-gcc" role="."/></para>
122
123 </sect2>
124
125</sect1>
Note: See TracBrowser for help on using the repository browser.