aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/coreutils.xml9
-rw-r--r--chapter05/glibc.xml10
-rw-r--r--chapter05/gzip.xml9
3 files changed, 28 insertions, 0 deletions
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 @@
<sect2 role="installation">
<title>Installation of Coreutils</title>
+ <para>The version of the function <quote>futimens</quote> used
+ by Coreutils is incompatible with the version that current
+ Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
+ cp -v $file{,.orig}
+ sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
+done</userinput></screen>
+
<para>Prepare Coreutils for compilation:</para>
<screen><userinput>./configure --prefix=/tools</userinput></screen>
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 @@
<screen><userinput>mkdir -v ../glibc-build
cd ../glibc-build</userinput></screen>
+ <para>Because Glibc no longer supports i386, its developers say to use the
+ compiler flag <parameter>-march=i486</parameter> 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 <quote>CFLAGS</quote>.
+ 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 <filename>configparms</filename>:</para>
+
+<screen><userinput>echo "CFLAGS += -march=i486" &gt; configparms</userinput></screen>
+
<para>Next, prepare Glibc for compilation:</para>
<screen><userinput>../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 @@
<sect2 role="installation">
<title>Installation of Gzip</title>
+ <para>The version of the function <quote>futimens</quote> used
+ by Gzip is incompatible with the version that current
+ Glibc provides, so we'll rename the function:</para>
+
+<screen><userinput>for file in gzip.c lib/utimens.{c,h} ; do \
+ cp -v $file{,.orig}
+ sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
+done</userinput></screen>
+
<para>Prepare Gzip for compilation:</para>
<screen><userinput>./configure --prefix=/tools</userinput></screen>