diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 765f5b875..93b6a2229 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -83,7 +83,7 @@ cd build ../configure \ --target=$LFS_TGT \ --prefix=$LFS/tools \ - --with-glibc-version=2.11 \ + --with-glibc-version=&glibc-version; \ --with-sysroot=$LFS \ --with-newlib \ --without-headers \ @@ -104,11 +104,14 @@ cd build The meaning of the configure options: - --with-glibc-version=2.11 + --with-glibc-version=&glibc-version; - This option ensures the package will be compatible with the host's - version of glibc. It is set to the minimum glibc requirement - specified in the . + This option specifies the version of glibc which will be + used on the target. It is not relevent to the minimum glibc + requirement specified in the + because everything + compiled by pass1 gcc will run in the chroot environment, + which is isolated from glibc of the host distro.