8.7. 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 CLFS_TARGET32="powerpc-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:

cat >> ${CLFS}/root/.bash_profile << EOF
export BUILD32="${BUILD32}"
export BUILD64="${BUILD64}"
export CLFS_TARGET32="${CLFS_TARGET32}"
EOF