diff options
Diffstat (limited to 'chapter06/glibc.xml')
-rw-r--r-- | chapter06/glibc.xml | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index 5ef90aaeb..e972cb623 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -68,14 +68,19 @@ <screen><userinput remap="pre">case $(uname -m) in i?86) GCC_INCDIR=/usr/lib/gcc/$(uname -m)-pc-linux-gnu/&gcc-version;/include - ln -s ld-linux.so.2 /lib/ld-lsb.so.3 + ln -sfv ld-linux.so.2 /lib/ld-lsb.so.3 ;; x86_64) GCC_INCDIR=/usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include - ln -s ../lib/ld-linux-x86-64.so.2 /lib64 - ln -s ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 + ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64 + ln -sfv ../lib/ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3 ;; esac</userinput></screen> + <para>Remove a file that may be left over from a previous build attempt: + </para> + +<screen><userinput remap="pre">rm -f /usr/include/limits.h</userinput></screen> + <para>The Glibc documentation recommends building Glibc in a dedicated build directory:</para> @@ -198,6 +203,12 @@ unset GCC_INCDIR</userinput></screen> <screen><userinput remap="install">touch /etc/ld.so.conf</userinput></screen> + <para>Fix the generated Makefile to skip an uneeded sanity check + that fails in the LFS partial environment: + </para> + +<screen><userinput remap="install">sed '/test-installation/s@$(PERL)@echo not running@' -i ../Makefile</userinput></screen> + <para>Install the package:</para> <screen><userinput remap="install">make install</userinput></screen> |