aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-12-31 16:38:46 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-12-31 16:38:46 +0000
commitebd94a2faeb50873b2a65cd8112ca055b83b7988 (patch)
tree9451f5507b744cf8f6b0e0714b55262c40037b5d
parent6143d137e463774e0199c976a76e54bdacc9f7d0 (diff)
added 2nd glibc install files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2247 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/glibc-pass2-inst.xml52
-rw-r--r--chapter06/glibc-pass2.xml11
2 files changed, 63 insertions, 0 deletions
diff --git a/chapter06/glibc-pass2-inst.xml b/chapter06/glibc-pass2-inst.xml
new file mode 100644
index 000000000..95ed2b215
--- /dev/null
+++ b/chapter06/glibc-pass2-inst.xml
@@ -0,0 +1,52 @@
+<sect2>
+<title>Installation of Glibc</title>
+
+<para>At the beginning of this chapter you installed Glibc and applied a
+patch to it. Part of this patch was undoing some changes to make static
+binaries compiled against Glibc-2.2 work. However, this is not what the
+Glibc developers intended and we don't need to keep this modified Glibc
+around. So we reinstall Glibc here to remove this patch.</para>
+
+<para>A second reason to install Glibc again is because it's considered
+cleaner. The first Glibc was installed using programs compiled on your host
+distribution which sometimes has the effect of tainting Glibc. While this
+isn't a problem with the other packages compiled early in this chapter, for
+Glibc we want to be sure it's 100% OK (although feel free to reinstall
+other packages at this point so you can say you compiled an LFS system with
+LFS. Much like GCC's bootstrap installation method).</para>
+
+<para>We'll also install the linuxthreads man pages here. As you may
+recall, during the first installation of Glibc this wasn't possible because
+Perl wasn't installed yet. Everything we need to install the Glibc
+linuxthread man pages is present now, so we'll take care of this too
+now.</para>
+
+<para>Before starting to install glibc, you must cd into the
+glibc-&glibc-version; directory and unpack glibc-linuxthreads inside
+the glibc-&glibc-version; directory, not in /usr/src as you normally
+would do.</para>
+
+<para>This package is known to behave badly when you have changed its
+default optimization flags (including the -march and -mcpu options). Glibc
+is best left alone. Therefore, if you have defined any environment variables
+that override default optimizations, such as CFLAGS and CXXFLAGS, we
+recommend unsetting or modifying them when building Glibc. You have
+been warned.</para>
+
+<para>Basically, compiling Glibc in any other way than the book suggests
+is putting your system at very high risk.</para>
+
+<para>Install Glibc by running the following commands:</para>
+
+<para><screen><userinput>mkdir ../glibc-build &amp;&amp;
+cd ../glibc-build &amp;&amp;
+../glibc-&glibc-version;/configure --prefix=/usr --disable-profile \
+&nbsp;&nbsp;&nbsp;&nbsp;--enable-add-ons --libexecdir=/usr/bin &amp;&amp;
+make &amp;&amp;
+make install &amp;&amp;
+make -C linuxthreads/man &amp;&amp;
+make -C linuxthread/man install &amp;&amp;
+exec /static/bin/bash --login</userinput></screen></para>
+
+</sect2>
+
diff --git a/chapter06/glibc-pass2.xml b/chapter06/glibc-pass2.xml
new file mode 100644
index 000000000..2afc9d930
--- /dev/null
+++ b/chapter06/glibc-pass2.xml
@@ -0,0 +1,11 @@
+<sect1 id="ch06-glibc-pass2">
+<title>Installing Glibc-&glibc-version;</title>
+<?dbhtml filename="glibc-pass2.html" dir="chapter06"?>
+
+<screen>Estimated build time: &glibc-time;
+Estimated required disk space: &glibc-compsize;</screen>
+
+&c6-glibc-pass2-inst;
+
+</sect1>
+