aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc.xml
diff options
context:
space:
mode:
authorJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-01-26 02:35:40 +0000
committerJeremy Huntwork <jhuntwork@linuxfromscratch.org>2006-01-26 02:35:40 +0000
commitae437d3255865d8e9541728702dbe95b3c37c12e (patch)
tree548569d3fe74c41710e3af07a27c4d57bfe6d815 /chapter06/glibc.xml
parent9c9c8e1971255b18bbf9a05f753d2bb64d22411b (diff)
Fix chapter 6 Glibc's test-installation.pl to test the correct Glibc.
Fixes bug 1675. Thanks to Dan Nicholson for the report and Greg Schafer for the fix. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7305 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r--chapter06/glibc.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml
index c69710f50..be1ccec1d 100644
--- a/chapter06/glibc.xml
+++ b/chapter06/glibc.xml
@@ -55,7 +55,7 @@ not this add-on.
Unpack the tarball from within the Glibc source
directory:</para>
-<screen><userinput>tar jxf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
+<screen><userinput>tar -xf ../glibc-libidn-&glibc-version;.tar.bz2</userinput></screen>
<para>In the vi_VN.TCVN locale, <command>bash</command> enters an infinite loop
at startup. It is unknown whether this is a <command>bash</command> bug or a
@@ -64,6 +64,17 @@ problem:</para>
<screen><userinput>sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED</userinput></screen>
+<para>When running <command>make install</command>, a script called
+<filename>test-installation.pl</filename> performs a small sanity test
+on our newly installed Glibc. However, because our toolchain still points to the
+<filename class="directory">/tools</filename> directory, the sanity test would
+be carried out against the wrong Glibc. We can force the script to check the
+Glibc we have just installed with the following:</para>
+
+<screen><userinput>sed -i \
+'s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=/lib/ld-linux.so.2 -o|' \
+ scripts/test-installation.pl</userinput></screen>
+
<para>The Glibc documentation recommends building Glibc outside of the source
directory in a dedicated build directory:</para>
@@ -267,7 +278,7 @@ mode.</para></listitem>
<sect2 id="conf-ld" role="configuration">
-<title>Configuring Dynamic Loader</title>
+<title>Configuring the Dynamic Loader</title>
<indexterm zone="conf-ld"><primary sortas="e-/etc/ld.so.conf">/etc/ld.so.conf</primary></indexterm>
<para>By default, the dynamic loader (<filename