source: BOOK/temp-system/common/gcc.xml@ 594c531

sysvinit
Last change on this file since 594c531 was a55f9e7, 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
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[64b1923]19 href="../../final-system/common/gcc.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[3f8be484]21
22 <sect2 role="installation">
23 <title>Installation of GCC</title>
24
[a55f9e7]25<!--GCC Branch Update Area
[cc858ed]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'])"/>
[a55f9e7]33-->
[cc858ed]34
[dabbced]35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[a9f0cdb]36 href="../../cross-tools/common/gcc-static.xml"
[3f8be484]37 xpointer="xpointer(//*[@os='aa'])"/>
38
[dabbced]39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[a9f0cdb]40 href="../../cross-tools/common/gcc-static.xml"
[3f8be484]41 xpointer="xpointer(//*[@os='ab'])"/>
42
[dabbced]43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[384af06]44 href="../../cross-tools/common/gcc-static.xml"
45 xpointer="xpointer(//*[@os='ag'])"/>
46
[dabbced]47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[384af06]48 href="../../cross-tools/common/gcc-static.xml"
49 xpointer="xpointer(//*[@os='ah'])"/>
50
[9c231d36]51 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
52 href="../../final-system/common/gcc.xml"
53 xpointer="xpointer(//*[@os='fix1'])"/>
54
[787b933]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>
[9c231d36]57
[dabbced]58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]59 href="../../final-system/common/gcc.xml"
60 xpointer="xpointer(//*[@os='f'])"/>
61
[dabbced]62 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]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
[dabbced]69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]70 href="../../final-system/common/gcc.xml"
71 xpointer="xpointer(//*[@os='h'])"/>
72
[b27081c4]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 \
[cc49a21]82 --with-native-system-header-dir=/tools/include \
[b27081c4]83 --disable-libssp \
84 --enable-install-libiberty</userinput></screen>
[3f8be484]85
[d55f00bc]86 <variablelist os="cl">
[a8fffb2]87 <title>The meaning of the new configure option:</title>
[3f8be484]88
[d55f00bc]89 <varlistentry os="cl1">
[16ed0af]90 <term><parameter>--enable-install-libiberty</parameter></term>
[3f8be484]91 <listitem>
[16ed0af]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>
[3f8be484]96 </listitem>
97 </varlistentry>
98
99 </variablelist>
100
[d55f00bc]101 <para os="cm">Compile the package:</para>
[3f8be484]102
[8049c26]103<screen os="cn"><userinput>make AS_FOR_TARGET="${AS}" \
[c3ed84c]104 LD_FOR_TARGET="${LD}"</userinput></screen>
[3f8be484]105
[d55f00bc]106 <para os="co">Install the package:</para>
[3f8be484]107
[bc2e3fa]108<screen os="cp"><userinput>make install</userinput></screen>
[3f8be484]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.