mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Upgraded from gcc-2.95.2 to gcc-2.95.2.1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@39 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
bd0c03232f
commit
db9b7cf06f
@ -1,9 +1,9 @@
|
||||
<listitem><para>
|
||||
|
||||
GCC (2.95.2):
|
||||
GCC (2.95.2.1):
|
||||
<ulink
|
||||
url="ftp://ftp.gnu.org/gnu/gcc/">
|
||||
ftp://ftp.gnu.org/gnu/gcc/</ulink>
|
||||
url="ftp://ftp.freesoftware.com/pub/sourceware/gcc/releases/">
|
||||
ftp://ftp.freesoftware.com/pub/sourceware/gcc/releases/</ulink>
|
||||
|
||||
</para></listitem>
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
<listitem><para>
|
||||
|
||||
GCC (2.95.2) 9,555 KB:
|
||||
GCC (2.95.2.1) 9,555 KB:
|
||||
<ulink
|
||||
url="ftp://packages.linuxfromscratch.org/pub/common-packages/gcc-2.95.2.tar.bz2">
|
||||
ftp://packages.linuxfromscratch.org/pub/common-packages/gcc-2.95.2.tar.bz2</ulink>
|
||||
url="ftp://packages.linuxfromscratch.org/pub/new-in-cvs/gcc-2.95.2.1.tar.bz2">
|
||||
ftp://packages.linuxfromscratch.org/pub/new-in-cvs/gcc-2.95.2.1.tar.bz2</ulink>
|
||||
|
||||
</para></listitem>
|
||||
|
||||
|
@ -2,11 +2,10 @@
|
||||
<title>Installation of GCC on the normal system if necessary</title>
|
||||
|
||||
<para>
|
||||
In order to compile Glibc-2.1.3 later on you need to have gcc-2.95.2
|
||||
installed. Although any GCC version above 2.8 would do, 2.95.2 is the
|
||||
highly
|
||||
recommended version to use. egcs-2.91.x is also known to work. If you
|
||||
don't have gcc-2.95.x or egcs-2.91.x you need to install gcc-2.95.2 on
|
||||
In order to compile Glibc-2.1.3 later on you need to have gcc-2.95.2.1
|
||||
installed. Although any GCC version above 2.8 would do, 2.95.2.1 is the
|
||||
highly recommended version to use. egcs-2.91.x is also known to work. If you
|
||||
don't have gcc-2.95.x or egcs-2.91.x you need to install gcc-2.95.2.1 on
|
||||
your normal sytem before you can compile Glibc later in this chapter.
|
||||
</para>
|
||||
|
||||
@ -25,13 +24,13 @@ following command:
|
||||
If you normal Linux system does not have gcc-2.95.x or egcs-2.91.x
|
||||
installed you need to install it now. We won't replace the current
|
||||
compiler on your system, but instead we will install gcc in a separate
|
||||
directory (/usr/local/gcc2952). This way no binaries or header files will be
|
||||
directory (/usr/local/gcc29521). This way no binaries or header files will be
|
||||
replaced.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
After you unpacked the gcc-2.95.2 archive don't enter the newly created
|
||||
gcc-2.95.2 directory but stay in the $LFS/usr/src directory. Install GCC by
|
||||
After you unpacked the gcc-2.95.2.1 archive don't enter the newly created
|
||||
gcc-2.95.2.1 directory but stay in the $LFS/usr/src directory. Install GCC by
|
||||
running the following commands:
|
||||
</para>
|
||||
|
||||
@ -39,12 +38,12 @@ running the following commands:
|
||||
|
||||
<userinput>mkdir $LFS/usr/src/gcc-build &&</userinput>
|
||||
<userinput>cd $LFS/usr/src/gcc-build &&</userinput>
|
||||
<userinput>../gcc-2.95.2/configure \</userinput>
|
||||
<userinput> --prefix=/usr/local/gcc2952 \</userinput>
|
||||
<userinput> --with-local-prefix=/usr/local/gcc2952
|
||||
<userinput>../gcc-2.95.2.1/configure \</userinput>
|
||||
<userinput> --prefix=/usr/local/gcc29521 \</userinput>
|
||||
<userinput> --with-local-prefix=/usr/local/gcc29521
|
||||
\</userinput>
|
||||
<userinput>
|
||||
--with-gxx-include-dir=/usr/local/gcc2952/include/g++ \</userinput>
|
||||
--with-gxx-include-dir=/usr/local/gcc29521/include/g++ \</userinput>
|
||||
<userinput> --enable-shared --enable-languages=c,c++
|
||||
&&</userinput>
|
||||
<userinput>make bootstrap &&</userinput>
|
||||
|
@ -9,13 +9,13 @@ use the --enable-languages parameter.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2/cpp cpp:</userinput> This
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp:</userinput> This
|
||||
creates the $LFS/lib/cpp symlink. Some packages explicitely try to find
|
||||
cpp in /lib.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2/cpp cpp:</userinput> This
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp:</userinput> This
|
||||
creates the $LFS/usr/lib/cpp symlink as there are packages that expect
|
||||
cpp to be in /usr/lib.
|
||||
</para>
|
||||
|
@ -2,8 +2,8 @@
|
||||
<title>Installation of GCC on the LFS system</title>
|
||||
|
||||
<para>
|
||||
After you unpacked the gcc-2.95.2 archive don't enter the newly created
|
||||
gcc-2.95.2 directory but stay in the $LFS/usr/src directory. Install GCC by
|
||||
After you unpacked the gcc-2.95.2.1 archive don't enter the newly created
|
||||
gcc-2.95.2.1 directory but stay in the $LFS/usr/src directory. Install GCC by
|
||||
running the following commands:
|
||||
</para>
|
||||
|
||||
@ -11,7 +11,7 @@ running the following commands:
|
||||
|
||||
<userinput>mkdir $LFS/usr/src/gcc-build &&</userinput>
|
||||
<userinput>cd $LFS/usr/src/gcc-build &&</userinput>
|
||||
<userinput>../gcc-2.95.2/configure --prefix=/usr \</userinput>
|
||||
<userinput>../gcc-2.95.2.1/configure --prefix=/usr \</userinput>
|
||||
<userinput> --with-gxx-include-dir=/usr/include/g++
|
||||
\</userinput>
|
||||
<userinput> --enable-languages=c,c++ --disable-nls
|
||||
@ -22,10 +22,10 @@ running the following commands:
|
||||
<userinput> gxx_include_dir=$LFS/usr/include/g++
|
||||
install &&</userinput>
|
||||
<userinput>cd $LFS/lib &&</userinput>
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2/cpp cpp
|
||||
<userinput>ln -s ../usr/lib/gcc-lib/*/2.95.2.1/cpp cpp
|
||||
&&</userinput>
|
||||
<userinput>cd $LFS/usr/lib &&</userinput>
|
||||
<userinput>ln -s gcc-lib/*/2.95.2/cpp cpp
|
||||
<userinput>ln -s gcc-lib/*/2.95.2.1/cpp cpp
|
||||
&&</userinput>
|
||||
<userinput>cd $LFS/usr/bin &&</userinput>
|
||||
<userinput>ln -s gcc cc</userinput>
|
||||
|
@ -85,7 +85,7 @@ commands:
|
||||
<para>
|
||||
If your system didn't have a suitable GCC version installed, change to the
|
||||
<filename class="directory">$LFS/usr/src/glibc-build</filename>
|
||||
directory and install Glibc using the gcc-2.95.2 you just installed by
|
||||
directory and install Glibc using the gcc-2.95.2.1 you just installed by
|
||||
running the following commands:
|
||||
</para>
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
<title>Installation of GCC</title>
|
||||
|
||||
<para>
|
||||
After you unpacked the gcc-2.95.2 archive don't enter the newly created
|
||||
gcc-2.95.2 directory but stay in the /usr/src directory. Install GCC by
|
||||
After you unpacked the gcc-2.95.2.1 archive don't enter the newly created
|
||||
gcc-2.95.2.1 directory but stay in the /usr/src directory. Install GCC by
|
||||
running the following commands:
|
||||
</para>
|
||||
|
||||
@ -11,7 +11,7 @@ running the following commands:
|
||||
|
||||
<userinput>mkdir /usr/src/gcc-build &&</userinput>
|
||||
<userinput>cd /usr/src/gcc-build &&</userinput>
|
||||
<userinput>../gcc-2.95.2/configure --prefix=/usr \</userinput>
|
||||
<userinput>../gcc-2.95.2.1/configure --prefix=/usr \</userinput>
|
||||
<userinput> --with-gxx-include-dir=/usr/include/g++
|
||||
\</userinput>
|
||||
<userinput> --enable-shared
|
||||
|
Loading…
Reference in New Issue
Block a user