source: general/prog/gcc3.xml@ 2dfcd1d

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 2dfcd1d was 2dfcd1d, checked in by DJ Lucas <dj@…>, 18 years ago

update to OOo-1.1.3 and added gcc-3.3.3-linkonce patch

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3119 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.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
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
85<para>Move the <application>C++</application> libraries to the standard lib
86directory to avoid having to add <userinput>/opt/gcc-&gcc3-version;/lib
87</userinput> to <filename>/etc/ld.so.conf</filename>.</para>
88
89<screen><userinput><command>mv /opt/gcc-&gcc3-version;/lib/libstdc++.so.5* /usr/lib</command></userinput></screen>
90
91
92</sect2>
93
94<sect2>
95<title>Configuring <application><acronym>GCC</acronym></application></title>
96
97<sect3><title>Configuration Information</title>
98
99<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/>
100
101<para>If you only need the GCC-&gcc3-version; libraries, you may delete
102<filename>/opt/gcc-&gcc3-version;</filename>.</para>
103
104<para>Whenever you need to use GCC-&gcc3-version; instead of your system
105installed compiler, add
106<filename class="directory">/opt/gcc-&gcc3-version;/bin</filename> to the
107front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
108environment variable before compiling the concerned package.</para>
109
110</sect3>
111
112</sect2>
113
114<sect2>
115<title>Contents</title>
116
117<para>The GCC-&gcc3-version; package contains the
118<command>gcc</command>-&gcc3-version; <application>C</application> and
119<application>C++</application> compilers and GCC-&gcc3-version;
120<filename>libstdc++.so</filename> that is required by some commercial and
121pre-compiled packages.</para>
122
123</sect2>
124
125</sect1>
126
Note: See TracBrowser for help on using the repository browser.