From 2a7ac34a074d6f89c1385ba1ee542d9901fefd64 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Sun, 16 Sep 2007 00:21:26 +0000 Subject: Upgrade to Glibc-2.6.1. Fixes #2018. Thanks to several people mentioned in the changelog. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8375 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/coreutils.xml | 9 +++++++++ chapter05/glibc.xml | 10 ++++++++++ chapter05/gzip.xml | 9 +++++++++ 3 files changed, 28 insertions(+) (limited to 'chapter05') diff --git a/chapter05/coreutils.xml b/chapter05/coreutils.xml index 8d367b1ba..e52e60d85 100644 --- a/chapter05/coreutils.xml +++ b/chapter05/coreutils.xml @@ -43,6 +43,15 @@ Installation of Coreutils + The version of the function futimens used + by Coreutils is incompatible with the version that current + Glibc provides, so we'll rename the function: + +for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \ + cp -v $file{,.orig} + sed 's/futimens/gl_&/' $file.orig > $file +done + Prepare Coreutils for compilation: ./configure --prefix=/tools diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 0710ea5da..dd35ef1d3 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -49,6 +49,16 @@ mkdir -v ../glibc-build cd ../glibc-build + Because Glibc no longer supports i386, its developers say to use the + compiler flag -march=i486 when building it for x86 + machines. There are several ways to accomplish that, but testing shows that + the flag is best placed inside the build variable CFLAGS. + Instead of overriding completely what Glibc's internal build system uses + for CFLAGS, append the new flag to the existing contents of CFLAGS by + making use of the special file configparms: + +echo "CFLAGS += -march=i486" > configparms + Next, prepare Glibc for compilation: ../glibc-&glibc-version;/configure --prefix=/tools \ diff --git a/chapter05/gzip.xml b/chapter05/gzip.xml index a75659e2e..eb2c6a7c8 100644 --- a/chapter05/gzip.xml +++ b/chapter05/gzip.xml @@ -43,6 +43,15 @@ Installation of Gzip + The version of the function futimens used + by Gzip is incompatible with the version that current + Glibc provides, so we'll rename the function: + +for file in gzip.c lib/utimens.{c,h} ; do \ + cp -v $file{,.orig} + sed 's/futimens/gl_&/' $file.orig > $file +done + Prepare Gzip for compilation: ./configure --prefix=/tools -- cgit v1.2.3-54-g00ecf