source: cross-tools/ppc/gcc-static.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: 3.6 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-static" role="wrap">
11 <?dbhtml filename="gcc-static.html"?>
12
13 <title>Cross GCC-&gcc-version; - Static</title>
14
15 <indexterm zone="ch-cross-tools-gcc-static">
16 <primary sortas="a-GCC">GCC</primary>
17 <secondary>cross tools, static</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 Cross GCC Compiler with Static libgcc
26 and no Threads</title>
27
28 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
29 href="../x86/gcc-static.xml"
30 xpointer="xpointer(//*[@os='aa'])"/>
31
32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
33 href="../x86/gcc-static.xml"
34 xpointer="xpointer(//*[@os='ab'])"/>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../x86/gcc-static.xml"
38 xpointer="xpointer(//*[@os='ac'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../x86/gcc-static.xml"
42 xpointer="xpointer(//*[@os='ad'])"/>
43
44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45 href="../x86/gcc-static.xml"
46 xpointer="xpointer(//*[@os='ae'])"/>
47
48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
49 href="../x86/gcc-static.xml"
50 xpointer="xpointer(//*[@os='af'])"/>
51
52 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
53 href="../x86/gcc-static.xml"
54 xpointer="xpointer(//*[@os='ag'])"/>
55
56<screen os="ah"><userinput>echo "
57#undef STARTFILE_PREFIX_SPEC
58#define STARTFILE_PREFIX_SPEC \"/tools/lib/\"" &gt;&gt; gcc/config/rs6000/linux.h</userinput></screen>
59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="../x86/gcc-static.xml"
62 xpointer="xpointer(//*[@os='ai'])"/>
63
64<screen os="aj"><userinput>cp gcc/Makefile.in{,.orig}
65sed "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
66 gcc/Makefile.in.orig > gcc/Makefile.in</userinput></screen>
67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="../x86/gcc-static.xml"
70 xpointer="xpointer(//*[@os='ak'])"/>
71
72 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
73 href="../../final-system/common/gcc.xml"
74 xpointer="xpointer(//*[@os='f'])"/>
75
76 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
77 href="../../final-system/common/gcc.xml"
78 xpointer="xpointer(//*[@os='g'])"/>
79
80 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
81 href="../../final-system/common/gcc.xml"
82 xpointer="xpointer(//*[@os='h'])"/>
83
84<screen><userinput>../gcc-&gcc-version;/configure --prefix=/cross-tools \
85 --host=${LFS_HOST} --target=${LFS_TARGET} \
86 --with-local-prefix=/tools --disable-nls --disable-shared \
87 --disable-threads --enable-languages=c</userinput></screen>
88
89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
90 href="../x86/gcc-static.xml"
91 xpointer="xpointer(//*[@os='al'])"/>
92
93 <para>Continue with compiling the package:</para>
94
95<screen><userinput>make all-gcc</userinput></screen>
96
97 <para>Install the package:</para>
98
99<screen><userinput>make install-gcc</userinput></screen>
100
101 </sect2>
102
103 <sect2 role="content">
104 <title/>
105
106 <para>Details on this package are located in <xref
107 linkend="contents-gcc" role="."/></para>
108
109 </sect2>
110
111</sect1>
Note: See TracBrowser for help on using the repository browser.