%general-entities; ]> Build Flags We will need to setup target specific flags for the compiler and linkers. export BUILD32="-mabi=32" export BUILDN32="-mabi=n32" export BUILD64="-mabi=64" You will need to set your host target triplet for o32 bit: export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`" if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \ echo "Host and Target can't be the same." ; fi If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a a different target triplet: export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`" Lets add the build flags to ~/.bashrc to prevent issues if we stop and come back later. echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc echo export BUILDN32=\""${BUILDN32}\"" >> ~/.bashrc echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc