diff options
author | Matthew Burgess <matthew@linuxfromscratch.org> | 2009-05-23 09:43:32 +0000 |
---|---|---|
committer | Matthew Burgess <matthew@linuxfromscratch.org> | 2009-05-23 09:43:32 +0000 |
commit | f32421a3b98697ad4eac02f82fa5da008bb62565 (patch) | |
tree | 68a79ecc569a27da1753fa109ed40234e0bb2d16 /chapter06/glibc.xml | |
parent | b896a2117567b423751c4639f7ead30bde5a8864 (diff) |
Shorten the linker adjustment command in chapter 6. Fixes #2404.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8900 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r-- | chapter06/glibc.xml | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 4dc69b9a7..53c97a8ca 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -84,8 +84,7 @@ mv glibc-libidn-&glibc-version; libidn</userinput></screen> 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 remap="pre">DL=$(readelf -l /bin/sh | grep interpreter | \ -awk '{print $4}' | sed -e 's@/tools@@' -e 's@]$@@') +<screen><userinput remap="pre">DL=$(readelf -l /bin/sh | sed -n 's@.*interpret.*/tools\(.*\)]$@\1@p') sed -i "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$DL -o|" \ scripts/test-installation.pl unset DL</userinput></screen> |