diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-08-27 17:50:50 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-08-27 17:50:50 +0000 |
commit | 0fe6ccd8aea0ed502c8c9126cf7161ff895c0324 (patch) | |
tree | 1e2681ee9d77508fd4289ec6b259ab7357e30b13 /chapter05/glibc.xml | |
parent | 035ccc16f0848cf64d57605620f572542d460789 (diff) |
Add instructions to Chapter 5 glibc to add rpc headers
to the host system if they are missing.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9963 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/glibc.xml')
-rw-r--r-- | chapter05/glibc.xml | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 5f90ad46a..88fde346d 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -43,6 +43,19 @@ <sect2 role="installation"> <title>Installation of Glibc</title> + <para>In some cases, particularly LFS 7.1, the rpc headers were not + installed properly. Test to see if they are installed in the host system + and install if they are not:</para> + +<screen><userinput remap="pre">if [ ! -r /usr/include/rpc/types.h ]; then + su -c 'mkdir -p /usr/include/rpc' + su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc' +fi</userinput></screen> + + <para>Fix an issue when building Glibc-&glibc-version; with GCC-&gcc-version;:</para> + +<screen><userinput remap="pre">sed -i 's/ -lgcc_s//' Makeconfig</userinput></screen> + <para>The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory:</para> @@ -63,9 +76,6 @@ cd ../glibc-build</userinput></screen> i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; esac</userinput></screen> --> - <para>Fix an issue when building Glibc-&glibc-version; with GCC-&gcc-version;:</para> - -<screen><userinput remap="pre">sed -i 's/ -lgcc_s//' ../glibc-&glibc-version;/Makeconfig</userinput></screen> <para>Next, prepare Glibc for compilation:</para> |