diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index d7484f31c..2f9021027 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -129,7 +129,7 @@ cd build --disable-nscd - Do not build the name service cache daemon which is no + Do not build the name service cache daemon which is no longer used. @@ -314,7 +314,7 @@ SEARCH_DIR("=/usr/lib"); Clear the build directory and remove artefacts from previous build: - + make clean find .. -name "*.a" -delete @@ -326,12 +326,12 @@ CXX="$LFS_TGT-g++ -m32" \ --prefix=/usr \ --host=$LFS_TGT32 \ --build=$(../scripts/config.guess) \ - --enable-kernel=&min-kernel; \ - --with-headers=$LFS/usr/include \ --disable-nscd \ + --with-headers=$LFS/usr/include \ --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ - libc_cv_slibdir=/usr/lib32 + libc_cv_slibdir=/usr/lib32 \ + --enable-kernel=&min-kernel; Compile the package: @@ -376,7 +376,7 @@ readelf -l a.out | grep '/ld-linux' - + Building Glibc - x32bit @@ -386,7 +386,7 @@ readelf -l a.out | grep '/ld-linux' Clear the build directory and remove artefacts from previous build: - + make clean find .. -name "*.a" -delete @@ -398,12 +398,12 @@ CXX="$LFS_TGT-g++ -mx32" \ --prefix=/usr \ --host=$LFS_TGTX32 \ --build=$(../scripts/config.guess) \ - --enable-kernel=&min-kernel; \ - --with-headers=$LFS/usr/include \ --disable-nscd \ + --with-headers=$LFS/usr/include \ --libdir=/usr/libx32 \ --libexecdir=/usr/libx32 \ - libc_cv_slibdir=/usr/libx32 + libc_cv_slibdir=/usr/libx32 \ + --enable-kernel=&min-kernel; Compile the package: diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index a957c4bcb..53aa84c90 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -111,7 +111,7 @@ cd build --disable-nscd - Do not build the name service cache daemon which is no + Do not build the name service cache daemon which is no longer used. @@ -621,7 +621,7 @@ mkdir -pv /etc/ld.so.conf.d Clear the build directory and remove artefacts from previous build: - + rm -rf ./* find .. -name "*.a" -delete @@ -632,11 +632,13 @@ find .. -name "*.a" -delete --prefix=/usr \ --host=i686-pc-linux-gnu \ --build=$(../scripts/config.guess) \ - --enable-kernel=&min-kernel; \ - --disable-nscd \ --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ - libc_cv_slibdir=/usr/lib32 + --disable-werror \ + --disable-nscd \ + libc_cv_slibdir=/usr/lib32 \ + --enable-stack-protector=strong \ + --enable-kernel=&min-kernel; Compile the package: @@ -686,7 +688,7 @@ readelf -l a.out | grep '/ld-linux' - + Building Glibc - x32bit @@ -696,7 +698,7 @@ readelf -l a.out | grep '/ld-linux' Clear the build directory and remove artefacts from previous build: - + rm -rf ./* find .. -name "*.a" -delete @@ -707,11 +709,13 @@ find .. -name "*.a" -delete --prefix=/usr \ --host=x86_64-pc-linux-gnux32 \ --build=$(../scripts/config.guess) \ - --enable-kernel=&min-kernel; \ - --disable-nscd \ --libdir=/usr/libx32 \ --libexecdir=/usr/libx32 \ - libc_cv_slibdir=/usr/libx32 + --disable-werror \ + --disable-nscd \ + libc_cv_slibdir=/usr/libx32 \ + --enable-stack-protector=strong \ + --enable-kernel=&min-kernel; Compile the package: