8.8. Build Flags

We will need to setup target specific flags for the compiler and linkers.

export BUILD32="-m32"
export BUILD64="-m64"

You will need to set your host target triplet for 32 bit:

export LFS_TARGET32="sparcv9-unknown-linux-gnu"

To prevent errors when you come back to your build, we will export these variables to prevent any build issues in the future:

echo export BUILD32=\""${BUILD32}\"" >> ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" >> ~/.bash_profile
echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bash_profile