1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY gcc3-download-http "http://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;.tar.gz">
|
---|
8 | <!ENTITY gcc3-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;.tar.gz">
|
---|
9 | <!ENTITY gcc3-size "22.7 MB">
|
---|
10 | <!ENTITY gcc3-buildsize "289 MB">
|
---|
11 | <!ENTITY gcc3-time "2.60 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="gcc3" xreflabel="GCC-&gcc3-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy: archaic $</othername>
|
---|
17 | <date>$Date: 2004-08-09 23:25:57 -0500 (Mon, 09 Aug 2004) $</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="gcc3.html" ?>
|
---|
20 | <title>GCC-&gcc3-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application><acronym>GCC</acronym></application>-&gcc3-version;</title>
|
---|
24 |
|
---|
25 | <para>The reason for installing <acronym>GCC</acronym>-&gcc3-version; is that
|
---|
26 | some <acronym>BLFS</acronym> packages (such as compiled Java) have not
|
---|
27 | been updated to be compilable by <acronym>GCC</acronym>-&gcc-version;.</para>
|
---|
28 |
|
---|
29 | <sect3><title>Package information</title>
|
---|
30 | <itemizedlist spacing='compact'>
|
---|
31 | <listitem><para>Download (HTTP): <ulink
|
---|
32 | url="&gcc3-download-http;"/></para></listitem>
|
---|
33 | <listitem><para>Download (FTP): <ulink
|
---|
34 | url="&gcc3-download-ftp;"/></para></listitem>
|
---|
35 | <listitem><para>Download size: &gcc3-size;</para></listitem>
|
---|
36 | <listitem><para>Estimated Disk space required:
|
---|
37 | &gcc3-buildsize;</para></listitem>
|
---|
38 | <listitem><para>Estimated build time:
|
---|
39 | &gcc3-time;</para></listitem></itemizedlist>
|
---|
40 | </sect3>
|
---|
41 |
|
---|
42 | <sect3><title>Additional downloads</title>
|
---|
43 | <itemizedlist spacing='compact'>
|
---|
44 | <listitem><para>Required Patch: <ulink
|
---|
45 | url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para></listitem>
|
---|
46 | </itemizedlist>
|
---|
47 | </sect3>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|
51 | <sect2>
|
---|
52 | <title>Installation of <application><acronym>GCC</acronym></application></title>
|
---|
53 |
|
---|
54 | <para>Apply the patches:</para>
|
---|
55 |
|
---|
56 | <screen><userinput><command>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch</command></userinput></screen>
|
---|
57 |
|
---|
58 | <para>The <acronym>GCC</acronym> development team recommends building in a
|
---|
59 | separate directory.</para>
|
---|
60 |
|
---|
61 | <screen><userinput><command>mkdir ../gcc-build &&
|
---|
62 | cd ../gcc-build</command></userinput></screen>
|
---|
63 |
|
---|
64 | <para>Configure <acronym>GCC</acronym> to build the
|
---|
65 | <application>C</application> and <application>C++</application> compilers and
|
---|
66 | enable the related <application>C++</application> options.</para>
|
---|
67 |
|
---|
68 | <screen><userinput><command>../gcc-&gcc3-version;/configure \
|
---|
69 | --prefix=/opt/gcc-&gcc3-version; \
|
---|
70 | --enable-shared --enable-languages=c,c++ \
|
---|
71 | --enable-threads=posix</command></userinput></screen>
|
---|
72 |
|
---|
73 | <para>Compile and install <acronym>GCC</acronym>:</para>
|
---|
74 |
|
---|
75 | <screen><userinput><command>make bootstrap &&
|
---|
76 | make install</command></userinput></screen>
|
---|
77 |
|
---|
78 |
|
---|
79 | <para>Move the <application>C++</application> libraries to the standard lib
|
---|
80 | directory to avoid having to add <userinput>/opt/gcc-&gcc3-version;/lib
|
---|
81 | </userinput> to <filename>/etc/ld.so.conf</filename>.</para>
|
---|
82 |
|
---|
83 | <screen><userinput><command>mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib</command></userinput></screen>
|
---|
84 |
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <sect2>
|
---|
89 | <title>Configuring <application><acronym>GCC</acronym></application></title>
|
---|
90 |
|
---|
91 | <sect3><title>Configuration Information</title>
|
---|
92 |
|
---|
93 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
94 |
|
---|
95 | <para>If you only need the GCC-&gcc3-version; libraries, you may delete
|
---|
96 | <filename>/opt/gcc-&gcc3-version;</filename>.</para>
|
---|
97 |
|
---|
98 | <para>Whenever you need to use GCC-&gcc3-version; instead of your system
|
---|
99 | installed compiler, add
|
---|
100 | <filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
|
---|
101 | front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
|
---|
102 | environment variable before compiling the concerned package.</para>
|
---|
103 |
|
---|
104 | </sect3>
|
---|
105 |
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2>
|
---|
109 | <title>Contents</title>
|
---|
110 |
|
---|
111 | <para>The GCC-&gcc3-version; package contains the
|
---|
112 | <command>gcc</command>-&gcc3-version; <application>C</application> and
|
---|
113 | <application>C++</application> compilers and GCC-&gcc3-version;
|
---|
114 | <filename>libstdc++.so</filename> that is required by some commercial and
|
---|
115 | pre-compiled packages.</para>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | </sect1>
|
---|
120 |
|
---|