source: BOOK/temp-system/common/gcc.xml@ 667fce2

systemd
Last change on this file since 667fce2 was c4ebdab, checked in by William Harrington <kb0iic@…>, 9 years ago

Upgrade GCC from 5.2.0 to 5.3.0.

  • Property mode set to 100644
File size: 3.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-temp-system-gcc" role="wrap">
9 <?dbhtml filename="gcc.html"?>
10
11 <title>GCC-&gcc-version;</title>
12
13 <indexterm zone="ch-temp-system-gcc">
14 <primary sortas="a-GCC">GCC</primary>
15 <secondary>temporary system</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/gcc.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of GCC</title>
24
25<!--GCC Branch Update Area
26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
27 href="../../final-system/common/gcc.xml"
28 xpointer="xpointer(//*[@os='p1'])"/>
29
30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
31 href="../../final-system/common/gcc.xml"
32 xpointer="xpointer(//*[@os='p2'])"/>
33-->
34
35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
36 href="../../cross-tools/common/gcc-static.xml"
37 xpointer="xpointer(//*[@os='aa'])"/>
38
39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
40 href="../../cross-tools/common/gcc-static.xml"
41 xpointer="xpointer(//*[@os='ab'])"/>
42
43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
44 href="../../cross-tools/common/gcc-static.xml"
45 xpointer="xpointer(//*[@os='ag'])"/>
46
47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
48 href="../../cross-tools/common/gcc-static.xml"
49 xpointer="xpointer(//*[@os='ah'])"/>
50
51 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
52 href="../../final-system/common/gcc.xml"
53 xpointer="xpointer(//*[@os='fix1'])"/>
54
55<screen os="fix2"><userinput>cp -v gcc/Makefile.in{,.orig}
56sed 's@\./fixinc\.sh@-c true@' gcc/Makefile.in.orig &gt; gcc/Makefile.in</userinput></screen>
57
58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
59 href="../../final-system/common/gcc.xml"
60 xpointer="xpointer(//*[@os='f'])"/>
61
62 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
63 href="../../final-system/common/gcc.xml"
64 xpointer="xpointer(//*[@os='g'])"/>
65
66 <para os="cj">Before starting to build GCC, remember to unset any environment
67 variables that override the default optimization flags.</para>
68
69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
70 href="../../final-system/common/gcc.xml"
71 xpointer="xpointer(//*[@os='h'])"/>
72
73<screen os="ck"><userinput>../gcc-&gcc-version;/configure \
74 --prefix=/tools \
75 --build=${CLFS_HOST} \
76 --host=${CLFS_TARGET} \
77 --target=${CLFS_TARGET} \
78 --with-local-prefix=/tools \
79 --disable-multilib \
80 --enable-languages=c,c++ \
81 --with-system-zlib \
82 --with-native-system-header-dir=/tools/include \
83 --disable-libssp \
84 --enable-install-libiberty</userinput></screen>
85
86 <variablelist os="cl">
87 <title>The meaning of the new configure option:</title>
88
89 <varlistentry os="cl1">
90 <term><parameter>--enable-install-libiberty</parameter></term>
91 <listitem>
92 <para>Allows GCC to build and install
93 <filename class="libraryfile">libiberty.a</filename>
94 and its associated headers. This library is needed for some packages
95 to compile.</para>
96 </listitem>
97 </varlistentry>
98
99 </variablelist>
100
101 <para os="cm">Compile the package:</para>
102
103<screen os="cn"><userinput>make AS_FOR_TARGET="${AS}" \
104 LD_FOR_TARGET="${LD}"</userinput></screen>
105
106 <para os="co">Install the package:</para>
107
108<screen os="cp"><userinput>make install</userinput></screen>
109
110 </sect2>
111
112 <sect2 role="content">
113 <title/>
114
115 <para>Details on this package are located in <xref
116 linkend="contents-gcc" role="."/></para>
117
118 </sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.