Stripping

The steps in this section are optional. If your LFS partition is rather small, you will be glad to learn that you can throw away some unnecessary things. The executables and libraries you have built so far contain about 130 MB of unneeded debugging symbols. Remove those symbols like this:

strip --strip-unneeded /tools/{,s}bin/*
strip --strip-debug /tools/lib/*

The first of the above commands will skip some twenty files, reporting that it doesn't recognize their file format. Most of them are scripts instead of binaries.

Take care not to use --strip-unneeded on the libraries -- they would be destroyed and you would have to build Glibc all over again.

To save another couple of megabytes, you can throw away all the documentation:

rm -rf /tools/{,share/}{doc,info,man}

You will now need to have at least 850 MB of free space on your LFS file system to be able to build and install Glibc in the next phase. If you can build and install Glibc, you can build and install the rest too.