source: general/prog/gcc3.xml@ 4697ee3

10.0 10.1 11.0 11.1 11.2 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since 4697ee3 was 4697ee3, checked in by Igor Živković <igor@…>, 18 years ago

Updated GCC-3.3.x to 3.3.4.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3137 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.3 KB
Line 
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
26some <acronym>BLFS</acronym> packages (such as compiled Java) have not
27been 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
32url="&gcc3-download-http;"/></para></listitem>
33<listitem><para>Download (FTP): <ulink
34url="&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
46url="&patch-root;/gcc-&gcc3-version;-no_fixincludes-1.patch"/></para></listitem>
47
48<listitem><para>Required Patch: <ulink
49url="&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 &amp;&amp;
62patch -Np1 -i ../gcc-&gcc3-version;-linkonce-1.patch </command></userinput></screen>
63
64<para>The <acronym>GCC</acronym> development team recommends building in a
65separate directory.</para>
66
67<screen><userinput><command>mkdir ../gcc-build &amp;&amp;
68cd ../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
72enable 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 &amp;&amp;
82make install</command></userinput></screen>
83
84<para>Move the <application>C++</application> libraries to the standard lib
85directory 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
103installed compiler, add
104<filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
105front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
106environment 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
119pre-compiled packages.</para>
120
121</sect2>
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.