5.4. Build Flags

#### Cross-Compiled Linux From Scratch - Version 1.0.0rc2-Sparc64-Pure64

### Chapter 5. Constructing Cross-Compile Tools

- Prev

  Build Variables

- Next

  Linux-Headers-2.6.17.4-07112006

- Up.
- Home

# 5.4. Build Flags

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

    export BUILD64="[BUILD64 entries]"
    export GCCTARGET="[GCCTARGET entries]"

Lets add the build flags to `~/.bashrc` to prevent issues if we stop and come back later.

    echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
    echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc

The following table gives the entires for different Sparc 64 capable processors. Pick the processor that matches your system.

Table 5.1. List of architectures, target triplets, and recommended book

Processor | BUILD64 | GCCTARGET
--- | --- | ---
Ultrasparc and Ultrasparc2 | -m64 -mcpu=ultrasparc -mtune=ultrasparc | -mcpu=ultrasparc -mtune=ultrasparc
Ultrasparc3 | -m64 -mcpu=ultrasparc3 -mtune=ultrasparc3 | -mcpu=ultrasparc3 -mtune=ultrasparc3

- Prev

  Build Variables

- Next

  Linux-Headers-2.6.17.4-07112006

- Up.
- Home.