<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-chroot-flags">
  <?dbhtml filename="flags.html"?>

  <title>Build Flags</title>

  <para>We will need to setup target specific flags for the compiler
  and linkers.</para>

<screen><userinput>export BUILD32="-mabi=32"
export BUILDN32="-mabi=n32"
export BUILD64="-mabi=64"</userinput></screen>

  <para>You will need to set your host target triplet for o32 bit:</para>

<screen><userinput>export CLFS_TARGET32="$(echo ${MACH_TYPE}| sed -e 's/64//g')"</userinput></screen>

   <para>To prevent errors when you come back to your build, we will export these
   variables to prevent any build issues in the future:</para>

<screen><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bash_profile
echo export BUILDN32=\""${BUILDN32}\"" &gt;&gt; ~/.bash_profile
echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bash_profile
echo export CLFS_TARGET32=\""${CLFS_TARGET32}\"" &gt;&gt; ~/.bash_profile</userinput></screen>

</sect1>
