diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 4239ac293..e8792729b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -36,6 +36,19 @@ --> + + 2012-08-27 + + + [bdubbs] - Add instructions to Chapter 5 glibc + to add rpc headers to the host system if they are missing. + + + [bdubbs] - Apply upstream patches to make. + + + + 2012-08-26 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 @@ Installation of Glibc + 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: + +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 + + Fix an issue when building Glibc-&glibc-version; with GCC-&gcc-version;: + +sed -i 's/ -lgcc_s//' Makeconfig + The Glibc documentation recommends building Glibc outside of the source directory in a dedicated build directory: @@ -63,9 +76,6 @@ cd ../glibc-build i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;; esac --> - Fix an issue when building Glibc-&glibc-version; with GCC-&gcc-version;: - -sed -i 's/ -lgcc_s//' ../glibc-&glibc-version;/Makeconfig Next, prepare Glibc for compilation: diff --git a/chapter06/glibc.xml b/chapter06/glibc.xml index bedbcde0f..99911bc33 100644 --- a/chapter06/glibc.xml +++ b/chapter06/glibc.xml @@ -71,11 +71,11 @@ sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED --> - +