From f1c177f9587a73e995b274d60babc763a4ed2f61 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Sun, 5 Aug 2012 14:25:02 +0000 Subject: Upgrade to Glibc-2.16.0. Fixes #3131. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9922 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/diffutils.xml | 4 ++++ chapter05/gcc-pass1.xml | 6 ++++++ chapter05/gettext.xml | 4 ++++ chapter05/glibc.xml | 16 ++++------------ chapter05/m4.xml | 4 ++++ chapter05/tar.xml | 4 ++++ 6 files changed, 26 insertions(+), 12 deletions(-) (limited to 'chapter05') diff --git a/chapter05/diffutils.xml b/chapter05/diffutils.xml index 62ba35874..94ec7c49c 100644 --- a/chapter05/diffutils.xml +++ b/chapter05/diffutils.xml @@ -43,6 +43,10 @@ Installation of Diffutils + Fix an incompatibility between this package and Glibc-&glibc-version;: + +sed -i -e '/gets is a/d' lib/stdio.in.h + Prepare Diffutils for compilation: ./configure --prefix=/tools diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 180cdf7ae..0edcd87d2 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -99,6 +99,12 @@ done prevents unexpected changes to the original files in case the commands are inadvertently run twice. + GCC doesn't detect stack protection correctly, which causes problems + for the build of Glibc-&glibc-version;, so fix that by issuing the following + command: + +sed -i '/k prot/agcc_cv_libc_provides_ssp=yes' gcc/configure + The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory: diff --git a/chapter05/gettext.xml b/chapter05/gettext.xml index a8b59ea1e..acaeb28bd 100644 --- a/chapter05/gettext.xml +++ b/chapter05/gettext.xml @@ -46,6 +46,10 @@ For our temporary set of tools, we only need to build and install one binary from Gettext. + Fix an incompatibility between this package and Glibc-&glibc-version;: + +sed -i -e '/gets is a/d' gettext-*/*/stdio.in.h + Prepare Gettext for compilation: cd gettext-tools diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 53d3d5713..05607b344 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,18 +43,6 @@ Installation of Glibc - Address a header check that fails due to an incomplete build - environment at this point: - - sed -i 's#$ac_includes_default#\n\n#' sysdeps/i386/configure - - Fix a path that is hardcoded: - - sed -i 's#/var/db#/tools/var/db#' Makeconfig - - Fix a bug that prevents Glibc from building with GCC-&gcc-version;: -patch -Np1 -i ../&glibc-gcc_fix-patch; - The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory: @@ -75,6 +63,10 @@ cd ../glibc-build i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; esac + Fix an issue when building Glibc-&glibc-version; with GCC-&gcc-version;: + +sed -i 's/ -lgcc_s//' ../glibc-&glibc-version;/Makeconfig + Next, prepare Glibc for compilation: ../glibc-&glibc-version;/configure \ diff --git a/chapter05/m4.xml b/chapter05/m4.xml index 4be3a0f36..0d4212cc2 100644 --- a/chapter05/m4.xml +++ b/chapter05/m4.xml @@ -43,6 +43,10 @@ Installation of M4 + Fix an incompatibility between this package and Glibc-&glibc-version;: + +sed -i -e '/gets is a/d' lib/stdio.in.h + Prepare M4 for compilation: ./configure --prefix=/tools diff --git a/chapter05/tar.xml b/chapter05/tar.xml index 002dc228f..37439d930 100644 --- a/chapter05/tar.xml +++ b/chapter05/tar.xml @@ -43,6 +43,10 @@ Installation of Tar + Fix an incompatibility between this package and Glibc-&glibc-version;: + +sed -i -e '/gets is a/d' gnu/stdio.in.h + Prepare Tar for compilation: ./configure --prefix=/tools -- cgit v1.2.3-54-g00ecf