8.8. Build Flags

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc1-PowerPC64-Multilib

### Chapter 8. If You Are Going to Chroot

- Prev

  Creating Essential Symlinks

- Next

  Creating the passwd, group, and log Files

- Up.
- Home

# 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="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:

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

- Prev

  Creating Essential Symlinks

- Next

  Creating the passwd, group, and log Files

- Up.
- Home.