source: BOOK/temp-system/mips64-64/gcc.xml@ 663c5a6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 663c5a6 was 64b1923, checked in by Jim Gifford <clfs@…>, 19 years ago

r660@server (orig r658): manuel | 2005-11-08 13:08:26 -0800
Preparations to remove SBUs and DUs. Chapter temp-system, round 4.

  • Property mode set to 100644
File size: 5.9 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-temp-system-gcc" role="wrap">
11 <?dbhtml filename="gcc.html"?>
12
13 <title>GCC-&gcc-version;</title>
14
15 <indexterm zone="ch-temp-system-gcc">
16 <primary sortas="a-GCC">GCC</primary>
17 <secondary>temporary system</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</title>
26
27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
28 href="../../cross-tools/mips64-64/gcc-static.xml"
29 xpointer="xpointer(//*[@os='aa'])"/>
30
31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
32 href="../../cross-tools/mips64-64/gcc-static.xml"
33 xpointer="xpointer(//*[@os='ab'])"/>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../../cross-tools/mips64-64/gcc-static.xml"
37 xpointer="xpointer(//*[@os='ac'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
40 href="../../cross-tools/mips64-64/gcc-static.xml"
41 xpointer="xpointer(//*[@os='ad'])"/>
42
43 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
44 href="../../cross-tools/mips64-64/gcc-static.xml"
45 xpointer="xpointer(//*[@os='ae'])"/>
46
47 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
48 href="../../cross-tools/mips64-64/gcc-static.xml"
49 xpointer="xpointer(//*[@os='af'])"/>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../../final-system/mips/gcc.xml"
53 xpointer="xpointer(//*[@os='ma'])"/>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="../../final-system/mips/gcc.xml"
57 xpointer="xpointer(//*[@os='mb'])"/>
58
59 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60 href="../../cross-tools/mips64-64/gcc-static.xml"
61 xpointer="xpointer(//*[@os='al'])"/>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../cross-tools/mips64-64/gcc-static.xml"
65 xpointer="xpointer(//*[@os='am'])"/>
66
67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
68 href="../x86/gcc.xml"
69 xpointer="xpointer(//*[@os='cd'])"/>
70
71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../x86/gcc.xml"
73 xpointer="xpointer(//*[@os='ce'])"/>
74
75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76 href="../x86/gcc.xml"
77 xpointer="xpointer(//*[@os='cf'])"/>
78
79 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
80 href="../x86/gcc.xml"
81 xpointer="xpointer(//*[@os='cg'])"/>
82
83 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
84 href="../x86/gcc.xml"
85 xpointer="xpointer(//*[@os='ch'])"/>
86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="../x86/gcc.xml"
89 xpointer="xpointer(//*[@os='ci'])"/>
90
91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
92 href="../x86_64/gcc.xml"
93 xpointer="xpointer(//*[@os='da'])"/>
94
95 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
96 href="../x86_64/gcc.xml"
97 xpointer="xpointer(//*[@os='db'])"/>
98
99 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
100 href="../../cross-tools/mips64-64/gcc-static.xml"
101 xpointer="xpointer(//*[@os='ak'])"/>
102
103 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
104 href="../../final-system/common/gcc.xml"
105 xpointer="xpointer(//*[@os='f'])"/>
106
107 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
108 href="../../final-system/common/gcc.xml"
109 xpointer="xpointer(//*[@os='g'])"/>
110
111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
112 href="../x86/gcc.xml"
113 xpointer="xpointer(//*[@os='cj'])"/>
114
115 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
116 href="../../final-system/common/gcc.xml"
117 xpointer="xpointer(//*[@os='h'])"/>
118
119<screen><userinput>CC="${CC} ${BUILD64}" CXX="${CXX} ${BUILD64}" \
120 ../gcc-&gcc-version;/configure --prefix=/tools --disable-multilib \
121 --build=${LFS_HOST} --host=${LFS_TARGET} --target=${LFS_TARGET} \
122 --libexecdir=/tools/lib --with-local-prefix=/tools --enable-long-long --with-abi=64 \
123 --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit \
124 --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch</userinput></screen>
125
126 <variablelist>
127 <title>The meaning of the new configure options:</title>
128
129 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
130 href="../x86_64/gcc.xml"
131 xpointer="xpointer(//*[@os='dc1'])"/>
132
133 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
134 href="../x86/gcc.xml"
135 xpointer="xpointer(//*[@os='ck1'])"/>
136
137 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
138 href="../x86/gcc.xml"
139 xpointer="xpointer(//*[@os='ck2'])"/>
140
141 </variablelist>
142
143 <para>Compile the package:</para>
144
145<screen><userinput>make AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as" \
146 LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</userinput></screen>
147
148 <para>Install the package:</para>
149
150<screen><userinput>make install</userinput></screen>
151
152 <para>Now we copy the files that are placed in <filename class="directory">/tools/lib64
153 </filename> to <filename class="directory">/tools/lib</filename>.
154 We also delete the /tools/lib64 directory:</para>
155
156<screen><userinput>cp -ar /tools/lib64/* /tools/lib
157rm -rf /tools/lib64</userinput></screen>
158
159 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
160 href="../../final-system/common/gcc.xml"
161 xpointer="xpointer(//*[@os='w'])"/>
162
163<screen><userinput>ln -s gcc /tools/bin/cc</userinput></screen>
164
165 </sect2>
166
167 <sect2 role="content">
168 <title/>
169
170 <para>Details on this package are located in <xref
171 linkend="contents-gcc" role="."/></para>
172
173 </sect2>
174
175</sect1>
Note: See TracBrowser for help on using the repository browser.