Changeset c230e05


Ignore:
Timestamp:
06/24/2004 04:39:00 PM (20 years ago)
Author:
Randy McMurchy <randy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
014d11ad
Parents:
6e01eced
Message:

fixed gcc-2.95.3 instructions

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

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • general.ent

    r6e01eced rc230e05  
    1 <!ENTITY day          "23">
     1<!ENTITY day          "24">
    22<!ENTITY month        "06">
    33<!ENTITY year         "2004">
    44<!ENTITY version      "cvs-&year;&month;&day;">
    5 <!ENTITY releasedate  "June &day;rd, &year;">
     5<!ENTITY releasedate  "June &day;th, &year;">
    66<!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    77<!ENTITY blfs-version "cvs">                  <!-- cvs|[release #] -->
  • general/prog/gcc2.xml

    r6e01eced rc230e05  
    1818<sect2>
    1919<title>Introduction to <application><acronym>GCC</acronym></application>-&gcc2-version;</title>
    20                                                                                
    21                                                                                
     20
    2221<para>There are two reasons for installing
    2322<acronym>GCC</acronym>-&gcc2-version;. The first is that the kernel
     
    2726Navigator, Yahoo Pager) and precompiled packages (such as Mozilla)
    2827are linked against <acronym>GCC</acronym>-&gcc2-version; libs.</para>
    29                                                                                
     28
    3029<sect3><title>Package information</title>
    3130<itemizedlist spacing='compact'>
     
    4039&gcc2-time;</para></listitem></itemizedlist>
    4140</sect3>
    42                                                                                
     41
    4342<sect3><title>Additional downloads</title>
    4443<itemizedlist spacing='compact'>
    4544<listitem><para><ulink url="&patch-root;/gcc-2.95.3-2.patch"/></para></listitem>
    46 <listitem><para><ulink url="&patch-root;/gcc-2.95.3-no-fixinc.patch"/></para></listitem>
    47 <listitem><para><ulink url="&patch-root;/gcc-2.95.3-returntype-fix.patch"/></para></listitem>
     45<listitem><para><ulink url="&patch-root;/gcc-2.95.3-no_fixinc-1.patch"/></para></listitem>
     46<listitem><para><ulink url="&patch-root;/gcc-2.95.3-returntype_fix-1.patch"/></para></listitem>
    4847</itemizedlist>
    4948</sect3>
     
    5251
    5352<sect2>
     53<title>Installation of <application><acronym>GCC</acronym></application></title>
     54
     55<para>Apply the patches:</para>
     56
     57<screen><userinput><command>patch -Np1 -i ../gcc-&gcc2-version;-2.patch &amp;&amp;
     58patch -Np1 -i ../gcc-&gcc2-version;-no_fixinc-1.patch &amp;&amp;
     59patch -Np1 -i ../gcc-&gcc2-version;-returntype_fix-1.patch</command></userinput></screen>
     60
     61<para>The <acronym>GCC</acronym> development team recommends building in a
     62separate directory.</para>
     63
     64<screen><userinput><command>mkdir ../gcc-build &amp;&amp;
     65cd ../gcc-build</command></userinput></screen>
     66
     67<para>Configure <acronym>GCC</acronym> to build the
     68<application>C</application> and <application>C++</application> compilers and
     69enable the related <application>C++</application> options.</para>
     70
     71<screen><userinput><command>../gcc-&gcc2-version;/configure \
     72    --prefix=/opt/gcc-&gcc2-version; \
     73    --enable-shared --enable-languages=c,c++ \
     74    --enable-threads=posix</command></userinput></screen>
     75
     76<para>Compile and install <acronym>GCC</acronym>:</para>
     77
     78<screen><userinput><command>make bootstrap &amp;&amp;
     79make install</command></userinput></screen>
     80
     81<para>Make note of the library that is installed.</para>
     82
     83<screen><userinput><command>L=`find /opt/gcc-&gcc2-version;/lib -name "*libstdc++*.so" -type f` &amp;&amp;
     84IL=`basename $L`</command></userinput></screen>
     85
     86<para>Move the <application>C++</application> libraries to the standard lib
     87directory to avoid having to add <userinput>/opt/gcc-&gcc2-version;/lib
     88</userinput> to <filename>/etc/ld.so.conf</filename>.</para>
     89
     90<screen><userinput><command>for i in /opt/gcc-&gcc2-version;/lib/*.so*; do mv -f $i /usr/lib;
     91ln -sf /usr/lib/`basename $i` /opt/gcc-&gcc2-version;/lib; done</command></userinput></screen>
     92
     93<para>Create symlinks required by commercial and precompiled packages.</para>
     94
     95<screen><userinput><command>ln -sf $IL /usr/lib/libstdc++-libc6.1-1.so.2 &amp;&amp;
     96ln -sf $IL /usr/lib/libstdc++-libc6.2-2.so.3 &amp;&amp;
     97ln -sf $IL /usr/lib/libstdc++-libc6.3-2.so.3</command></userinput></screen>
     98
     99</sect2>
     100
     101<sect2>
    54102<title>Configuring <application><acronym>GCC</acronym></application></title>
    55                                                                                
     103
    56104<sect3><title>Configuration Information</title>
    57                                                                                
     105
    58106<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../lib-config.xml"/> 
    59                                                                                
     107
    60108<para>The instructions given above make compatibility symlinks that pre-compiled
    61109packages in <acronym>BLFS</acronym> require. You may create additional
    62110compatibility links based on your requirements.</para>
    63                                                                                
     111
    64112<para>If you only need the GCC-&gcc2-version; libraries, you may delete
    65113<filename>/opt/gcc-&gcc2-version;</filename>.</para>
    66                                                                                
     114
    67115<para>Whenever you need to use GCC-&gcc2-version; instead of your system
    68116installed compiler, add
    69 <filename class="directory">/opt/gcc-&gcc2-version;/bin</filename> to the front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
     117<filename class="directory">/opt/gcc-&gcc2-version;/bin</filename> to the
     118front of your <envar>PATH</envar> or (preferably) set the <envar>CC</envar>
    70119environment variable before compiling the concerned package.</para>
    71                                                                                
     120
    72121</sect3>
    73                                                                                
     122
    74123</sect2>
    75124
    76125<sect2>
    77126<title>Contents</title>
    78                                                                                
     127
    79128<para>The GCC-&gcc2-version; package contains the
    80129<command>gcc</command>-&gcc2-version; <application>C</application> and
     
    82131<filename>libstdc++.so</filename> that is required by some commercial and
    83132pre-compiled packages.</para>
    84                                                                                
     133
    85134</sect2>
    86135
  • introduction/welcome/changelog.xml

    r6e01eced rc230e05  
    1818
    1919<itemizedlist>
     20
     21<listitem><para>June 24th, 2004 [randy]: Fixed gcc-2.95.3 instructions.</para></listitem>
    2022
    2123<listitem><para>June 23rd, 2004 [bdubbs]: Updated to mozilla 1.7.</para></listitem>
Note: See TracChangeset for help on using the changeset viewer.