Index: BOOK/chroot/mips64-chapter.xml
===================================================================
--- BOOK/chroot/mips64-chapter.xml	(revision e0e40d3b1473a5aba08a1bb46d1746c0016c4152)
+++ BOOK/chroot/mips64-chapter.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -19,4 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/createfiles.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/>
Index: BOOK/chroot/mips64/flags.xml
===================================================================
--- BOOK/chroot/mips64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
+++ BOOK/chroot/mips64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -0,0 +1,32 @@
+<?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 LFS_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 LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bash_profile</userinput></screen>
+
+</sect1>
Index: BOOK/chroot/sparc64-chapter.xml
===================================================================
--- BOOK/chroot/sparc64-chapter.xml	(revision e0e40d3b1473a5aba08a1bb46d1746c0016c4152)
+++ BOOK/chroot/sparc64-chapter.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -19,4 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/createfiles.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/>
Index: BOOK/chroot/sparc64/flags.xml
===================================================================
--- BOOK/chroot/sparc64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
+++ BOOK/chroot/sparc64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -0,0 +1,30 @@
+<?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="-m32"
+export BUILD64="-m64"</userinput></screen>
+
+  <para>You will need to set your host target triplet for 32 bit:</para>
+
+<screen><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</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 BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bash_profile
+echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bash_profile</userinput></screen>
+
+</sect1>
Index: BOOK/chroot/x86_64-chapter.xml
===================================================================
--- BOOK/chroot/x86_64-chapter.xml	(revision e0e40d3b1473a5aba08a1bb46d1746c0016c4152)
+++ BOOK/chroot/x86_64-chapter.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -19,4 +19,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/creatingdirs.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/createfiles.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/>
Index: BOOK/chroot/x86_64/flags.xml
===================================================================
--- BOOK/chroot/x86_64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
+++ BOOK/chroot/x86_64/flags.xml	(revision 6bcbd11864633d0ec4dd22feead8b461b4b7bb36)
@@ -0,0 +1,30 @@
+<?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="-m32"
+export BUILD64="-m64"</userinput></screen>
+
+  <para>You will need to set your host target triplet for 32 bit:</para>
+
+<screen><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</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 BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bash_profile
+echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bash_profile</userinput></screen>
+
+</sect1>
