Installation of Glibc
Unpack the glibc-linuxthreads in the glibc-2.2.1 directory, not in
/usr/src. Don't enter the created directories. Just unpack them and
leave it with that.
Install Glibc by running the following commands:
touch /etc/ld.so.conf &&
mkdir /usr/src/glibc-build &&
cd /usr/src/glibc-build &&
../glibc-2.2.1/configure \
--prefix=/usr --enable-add-ons
\
--libexecdir=/usr/bin &&
sed s/"cross-compiling = yes"/"cross-compiling = no"/
\
config.make > config.make~
&&
mv config.make~ config.make &&
make &&
make install &&
make localedata/install-locales &&
cp login/pt_chown /usr/bin
You can get rid of the "I have no name!" in the bash prompt if you want.
Do this by exiting chroot and re-entering it. Run the following
commands to do that:
logout
chroot $LFS /usr/bin/env -i HOME=/root /bin/bash
--login