5.4. Build Flags

Nous avons besoin d'initialiser des options spécifiques à la cible pour le compilateur et les éditeurs de liens.

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

Ajoutons les options de construction à ~/.bashrc pour éviter des problèmes si nous nous arrêtons et reprenons plus tard.

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. Note: GCC settings are only needed in the early sections of the book, and will not be used in the final-system builds.

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

ProcessorBUILD64GCCTARGET
Ultrasparc and Ultrasparc2-m64 -mcpu=ultrasparc -mtune=ultrasparc-mcpu=ultrasparc -mtune=ultrasparc
Ultrasparc3-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3-mcpu=ultrasparc3 -mtune=ultrasparc3