Taking Linux From Scratch as an example, novices are generally advised not to do this.
The exception is if the LFS partition is really small; it's also good to know what is unnecessary and can be deleted. The executables and libraries installed so far contain approximately 70 MB of unnecessary debugging symbols. Run the following command to remove these symbols:
strip --strip-debug /tools/lib/*
strip --strip-unneeded /tools/{,s}bin/*
The above command skips about 20 files whose format the report does not recognize, most of which are scripts rather than binaries.
Never use --strip-unneeded on a library file, otherwise it will destroy its static version and you will have to compile the entire toolchain package from scratch.
Deleting the document also saves 20 MB of space:
rm -rf /tools/{info,man}
Now there is at least 850 MB of remaining space on $LFS, and Glibc can be compiled and installed in the next chapter. If there is enough space to compile and install Glibc, then there will be no problem in compiling and installing other software packages.