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.bz2">
|
---|
8 | <!ENTITY gcc3-download-ftp "ftp://ftp.gnu.org/gnu/gcc/gcc-&gcc3-version;.tar.bz2">
|
---|
9 | <!ENTITY gcc3-size "23 MB">
|
---|
10 | <!ENTITY gcc3-buildsize "473 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 |
|
---|
45 | <listitem><para>Required Patch: <ulink
|
---|
46 | url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para></listitem>
|
---|
47 |
|
---|
48 | <listitem><para>Required Patch: <ulink
|
---|
49 | url="&patch-root;/gcc-&gcc3-version;-linkonce-1.patch"/></para></listitem>
|
---|
50 |
|
---|
51 | </itemizedlist>
|
---|
52 | </sect3>
|
---|
53 |
|
---|
54 | </sect2>
|
---|
55 |
|
---|
56 | <sect2>
|
---|
57 | <title>Installation of <application><acronym>GCC</acronym></application></title>
|
---|
58 |
|
---|
59 | <para>Apply the patches:</para>
|
---|
60 |
|
---|
61 | <screen><userinput><command>patch -Np1 -i ../gcc-&gcc3-version;-no_fixincludes-1.patch &&
|
---|
62 | patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch </command></userinput></screen>
|
---|
63 |
|
---|
64 | <para>The <acronym>GCC</acronym> development team recommends building in a
|
---|
65 | separate directory.</para>
|
---|
66 |
|
---|
67 | <screen><userinput><command>mkdir ../gcc-build &&
|
---|
68 | cd ../gcc-build</command></userinput></screen>
|
---|
69 |
|
---|
70 | <para>Configure <acronym>GCC</acronym> to build the
|
---|
71 | <application>C</application> and <application>C++</application> compilers and
|
---|
72 | enable the related <application>C++</application> options.</para>
|
---|
73 |
|
---|
74 | <screen><userinput><command>../gcc-&gcc3-version;/configure \
|
---|
75 | --prefix=/opt/gcc-&gcc3-version; \
|
---|
76 | --enable-shared --enable-languages=c,c++ \
|
---|
77 | --enable-threads=posix</command></userinput></screen>
|
---|
78 |
|
---|
79 | <para>Compile and install <acronym>GCC</acronym>:</para>
|
---|
80 |
|
---|
81 | <screen><userinput><command>make bootstrap &&
|
---|
82 | make install</command></userinput></screen>
|
---|
83 |
|
---|
84 | <para>Move the <application>C++</application> libraries to the standard lib
|
---|
85 | directory to avoid having to add <userinput>/opt/gcc-&gcc3-version;/lib
|
---|
86 | </userinput> to <filename>/etc/ld.so.conf</filename>.</para>
|
---|
87 |
|
---|
88 | <screen><userinput><command>mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib</command></userinput></screen>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2>
|
---|
93 | <title>Configuring <application><acronym>GCC</acronym></application></title>
|
---|
94 |
|
---|
95 | <sect3><title>Configuration Information</title>
|
---|
96 |
|
---|
97 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
|
---|
98 |
|
---|
99 | <para>If you only need the GCC-&gcc3-version; libraries, you may delete
|
---|
100 | <filename>/opt/gcc-&gcc3-version;</filename>.</para>
|
---|
101 |
|
---|
102 | <para>Whenever you need to use GCC-&gcc3-version; instead of your system
|
---|
103 | installed compiler, add
|
---|
104 | <filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
|
---|
105 | front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
|
---|
106 | environment variable before compiling the concerned package.</para>
|
---|
107 |
|
---|
108 | </sect3>
|
---|
109 |
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | <sect2>
|
---|
113 | <title>Contents</title>
|
---|
114 |
|
---|
115 | <para>The GCC-&gcc3-version; package contains the
|
---|
116 | <command>gcc</command>-&gcc3-version; <application>C</application> and
|
---|
117 | <application>C++</application> compilers and GCC-&gcc3-version;
|
---|
118 | <filename>libstdc++.so</filename> that is required by some commercial and
|
---|
119 | pre-compiled packages.</para>
|
---|
120 |
|
---|
121 | </sect2>
|
---|
122 |
|
---|
123 | </sect1>
|
---|