aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorMatthew Burgess <matthew@linuxfromscratch.org>2010-04-20 20:08:12 +0000
committerMatthew Burgess <matthew@linuxfromscratch.org>2010-04-20 20:08:12 +0000
commit49168420d4a3d3e6b8050db9239724c774c2058a (patch)
tree647b0c78cc7c230d60ccf410d796206f614a0570 /chapter05
parentec52ebbe6f1d52a04dc500e17bbb66f988178751 (diff)
Upgrade to GCC-4.5.0, including the addition of its new dependency, MPC. Fixes #2636.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9254 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/gcc-pass1.xml6
-rw-r--r--chapter05/gcc-pass2.xml11
-rw-r--r--chapter05/glibc.xml4
3 files changed, 15 insertions, 6 deletions
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index a99074458..ad80e86e4 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -43,14 +43,16 @@
<sect2 role="installation">
<title>Installation of Cross GCC</title>
- <para>GCC now requires the GMP and MPFR packages. As these packages may
+ <para>GCC now requires the GMP, MPFR and MPC packages. As these packages may
not be included in your host distribution, they will be built with
GCC:</para>
<screen><userinput remap="pre">tar -jxf ../mpfr-&mpfr-version;.tar.bz2
mv -v mpfr-&mpfr-version; mpfr
tar -jxf ../gmp-&gmp-version;.tar.bz2
-mv -v gmp-&gmp-version; gmp</userinput></screen>
+mv -v gmp-&gmp-version; gmp
+tar -zxf ../mpc-&mpc-version;.tar.gz
+mv -v mpc-&mpc-version; mpc</userinput></screen>
<para>The GCC documentation recommends building GCC outside of the
source directory in a dedicated build directory:</para>
diff --git a/chapter05/gcc-pass2.xml b/chapter05/gcc-pass2.xml
index 76107dddb..872ab2213 100644
--- a/chapter05/gcc-pass2.xml
+++ b/chapter05/gcc-pass2.xml
@@ -128,13 +128,16 @@ done</userinput></screen>
;;
esac</userinput></screen>
- <para>As in the first build of GCC it requires the GMP and MPFR packages.
- Unpack the tarballs and move them into the required directory names:</para>
+ <para>As in the first build of GCC it requires the GMP, MPFR and MPC
+ packages. Unpack the tarballs and move them into the required directory
+ names:</para>
<screen><userinput remap="pre">tar -jxf ../mpfr-&mpfr-version;.tar.bz2
mv -v mpfr-&mpfr-version; mpfr
tar -jxf ../gmp-&gmp-version;.tar.bz2
-mv -v gmp-&gmp-version; gmp</userinput></screen>
+mv -v gmp-&gmp-version; gmp
+tar -zxf ../mpc-&mpc-version;.tar.gz
+mv -v mpc-&mpc-version; mpc</userinput></screen>
<para>Create a separate build directory again:</para>
@@ -226,7 +229,7 @@ cd ../gcc-build</userinput></screen>
<para>Compile the package:</para>
-<screen><userinput remap="make">make</userinput></screen>
+<screen><userinput remap="make">make LD_LIBRARY_PATH=$(pwd)/$(../gcc-&gcc-version;/config.guess)/libgcc</userinput></screen>
<para>Install the package:</para>
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml
index 862a09f5a..6040eb430 100644
--- a/chapter05/glibc.xml
+++ b/chapter05/glibc.xml
@@ -43,6 +43,10 @@
<sect2 role="installation">
<title>Installation of Glibc</title>
+ <para>Fix a bug that prevents Glibc from building with GCC-&gcc-version;:</para>
+
+<screen><userinput remap="pre">patch -Np1 -i ../&glibc-gcc_fix-patch;</userinput></screen>
+
<para>The Glibc documentation recommends building Glibc outside of the source
directory in a dedicated build directory:</para>