diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 79137416f..c803d0c07 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -322,10 +322,14 @@ install -vm755 dest/usr/lib/*.so.* /usr/lib When the system has successfully rebooted, if you are running a LFS system prior to 12.0 (exclusive) where GCC was not built with the --disable-fixincludes option, + move two GCC headers into a better location and remove the stale fixed copies of the Glibc headers: - rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* + DIR=$(dirname $(gcc -print-libgcc-file-name)) +[ -e $DIR/include/limits.h ] || mv $DIR/include{-fixed,}/limits.h +[ -e $DIR/include/syslimits.h ] || mv $DIR/include{-fixed,}/syslimits.h +rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* Install the package: