Installation of Glibc Unpack the glibc-crypt and glibc-linuxthreads in the glibc-2.1.3 directory, not in $LFS/usr/src. Don't enter the created directories. Just unpack them and leave it with that. A few default parameters of Glibc need to be changed, such as the directory where the shared libraries are supposed to be installed in and the directory that contains the system configuration files. For this purpose you need to create the $LFS/usr/src/glibc-build directory and cd into that directory with:
mkdir $LFS/usr/src/glibc-build && cd $LFS/usr/src/glibc-build
In that directory you create a new file configparms by running the following: cat > configparms << "EOF" # Begin configparms slibdir=/lib sysconfdir=/etc # End configparms EOF Before we actually install Glibc you need to unpack the Glibc patch file. Please note that the configure script of Glibc may complain about certain files in the /usr/include directory being too old and will be replaced, or that some symlink is not supposed to be there anymore (like the /usr/include/scsi symlink that's present on older Linux systems). If it asks you to move a symlink like scsi out of the way, please do so. If it says it will replace old files by the newer Glibc files you can ignore that. Glibc does not know that it will end up on $LFS when the configure script is run. If your system had already a suitable GCC version installed, change to the $LFS/usr/src/glibc-build directory and install Glibc by running the following commands:
cd ../glibc-2.1.3 && patch -Np1 -i ../glibc-2.1.3.patch && cd $LFS/usr/src/glibc-build && ../glibc-2.1.3/configure \    --prefix=/usr --enable-add-ons \    --with-headers=$LFS/usr/include \    --libexecdir=/usr/bin && make && make install_root=$LFS install && make install_root=$LFS localedata/install-locales
If your system didn't have a suitable GCC version installed, change to the $LFS/usr/src/glibc-build directory and install Glibc using the gcc-2.95.2 you just installed by running the following commands:
cd ../glibc-2.1.3 && patch -Np1 -i ../glibc-2.1.3.patch && cd $LFS/usr/src/glibc-build && CC=/usr/local/gcc2952/bin/gcc \    ../glibc-2.1.3/configure --prefix=/usr --enable-add-ons \    --with-headers=$LFS/usr/include \    --libexecdir=/usr/bin && make && make install_root=$LFS install && make install_root=$LFS localedata/install-locales