7.4. Creating Essential Symlinks

Some programs use hard-wired paths to programs which do not exist yet. In order to satisfy these programs, create a number of symbolic links which will be replaced by real files throughout the course of the next chapter after the software has been installed.

ln -sv /tools/bin/{bash,cat,pwd,stty} ${LFS}/bin
ln -sv /tools/lib/libgcc_s.so{,.1} ${LFS}/usr/lib
ln -sv /tools/lib32/libgcc_s.so{,.1} ${LFS}/usr/lib32
ln -sv /tools/lib64/libgcc_s.so{,.1} ${LFS}/usr/lib64
ln -sv bash ${LFS}/bin/sh