Command explanations GCC_VERSION=... : STLport needs the location of the C++ headers, which are installed in /usr/include/c++/$GCC_VERSION if installed as per the instructions in LFS. sed -e ... : Replace the location where STLport looks for C++ headers. cd src : Change to the source directory. ln -sf gcc-linux.mak Makefile : Use the appropriate makefile for our environment.