source: cross-tools/x86/gcc-final.xml@ 65d82b0

Last change on this file since 65d82b0 was 48f8316, checked in by Jim Gifford <clfs@…>, 19 years ago

r656@server (orig r654): manuel | 2005-11-08 12:18:58 -0800
Preparations to remove SBUs and DUs. Chapter cross-tools.

  • Property mode set to 100644
File size: 5.2 KB
Line 
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 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
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="../../final-system/common/gcc.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="gcc-static.xml"
29 xpointer="xpointer(//*[@os='aa'])"/>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="gcc-static.xml"
33 xpointer="xpointer(//*[@os='ab'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="gcc-static.xml"
37 xpointer="xpointer(//*[@os='ac'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
40 href="gcc-static.xml"
41 xpointer="xpointer(//*[@os='ad'])"/>
42
43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
44 href="gcc-static.xml"
45 xpointer="xpointer(//*[@os='ae'])"/>
46
47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
48 href="gcc-static.xml"
49 xpointer="xpointer(//*[@os='af'])"/>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="gcc-static.xml"
53 xpointer="xpointer(//*[@os='ag'])"/>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="gcc-static.xml"
57 xpointer="xpointer(//*[@os='ah'])"/>
58
59 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60 href="gcc-static.xml"
61 xpointer="xpointer(//*[@os='ai'])"/>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="gcc-static.xml"
65 xpointer="xpointer(//*[@os='aj'])"/>
66
67 <para os="bd">Finally, disable <option>-B</option> in <filename>configure</filename>,
68 so it doesn't pick up the host's header files:</para>
69
70<screen os="be"><userinput>cp configure{,.orig}
71sed -e '/FLAGS_FOR_TARGET.*\/lib\//s@-B[^ ]*/lib/@@g' configure.orig >configure</userinput></screen>
72
73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
74 href="gcc-static.xml"
75 xpointer="xpointer(//*[@os='ak'])"/>
76
77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
78 href="gcc-static.xml"
79 xpointer="xpointer(//*[@os='f'])"/>
80
81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
82 href="gcc-static.xml"
83 xpointer="xpointer(//*[@os='g'])"/>
84
85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
86 href="gcc-static.xml"
87 xpointer="xpointer(//*[@os='h'])"/>
88
89<screen><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \
90 --target=${LFS_TARGET} --host=${LFS_HOST} --disable-multilib \
91 --with-local-prefix=/tools --disable-nls --enable-shared \
92 --enable-languages=c,c++ --enable-__cxa_atexit \
93 --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen>
94
95 <variablelist os="bf">
96 <title>The meaning of the new configure options:</title>
97
98 <varlistentry os="bf1">
99 <term><parameter>--enable-languages=c,c++</parameter></term>
100 <listitem>
101 <para>This option ensures that only the C and C++ compilers is built.</para>
102 </listitem>
103 </varlistentry>
104
105 <varlistentry os="bf2">
106 <term><parameter>--enable-__cxa_atexit</parameter></term>
107 <listitem>
108 <para>This option allows use of __cxa_atexit, rather than atexit,
109 to register C++ destructors for local statics and global objects
110 and is essential for fully standards-compliant handling of destructors.
111 It also affects the C++ ABI and therefore results in C++ shared libraries
112 and C++ programs that are interoperable with other Linux distributions.</para>
113 </listitem>
114 </varlistentry>
115
116 <varlistentry os="bf3">
117 <term><parameter>--enable-c99</parameter></term>
118 <listitem>
119 <para>Enable C99 support for C programs.</para>
120 </listitem>
121 </varlistentry>
122
123 <varlistentry os="bf4">
124 <term><parameter>--enable-long-long</parameter></term>
125 <listitem>
126 <para>Enables long long support in the compiler.</para>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry os="bf5">
131 <term><parameter>--enable-threads=posix</parameter></term>
132 <listitem>
133 <para>This enables C++ exception handling for multi-threaded code.</para>
134 </listitem>
135 </varlistentry>
136
137 </variablelist>
138
139 <para>Continue with compiling the package:</para>
140
141<screen><userinput>make AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as" \
142LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</userinput></screen>
143
144 <para>Install the package:</para>
145
146<screen><userinput>make install</userinput></screen>
147
148 </sect2>
149
150 <sect2 role="content">
151 <title/>
152
153 <para>Details on this package are located in <xref
154 linkend="contents-gcc" role="."/></para>
155
156 </sect2>
157
158</sect1>
Note: See TracBrowser for help on using the repository browser.