# Build Variables

Setting Host and Target

    export CLFS_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/")
    export CLFS_TARGET="[target triplet]"

Now we will set the architecture and endianess of the CPU based on the target triplet provided above:

    export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')
    export CLFS_ENDIAN=little

Now we will add this to `~/.bashrc`, just in case you have to exit and restart building later:

    echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
    echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
    echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc
    echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc