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

<sect1 id="ch-final-system-variables">
  <?dbhtml filename="variables.html"?>

  <title>Build Variables</title>

  <para>Setup target-specific variables for the compiler
  and linkers:</para>

<screen><userinput>export CC="${CLFS_TARGET}-gcc"
export CXX="${CLFS_TARGET}-g++"
export AR="${CLFS_TARGET}-ar"
export AS="${CLFS_TARGET}-as"
export RANLIB="${CLFS_TARGET}-ranlib"
export LD="${CLFS_TARGET}-ld"
export STRIP="${CLFS_TARGET}-strip"</userinput></screen>

  <para>Then add the build variables to <filename>~/.bashrc</filename> to
  prevent issues if you stop and come back later:</para>

<screen><userinput>cat &gt; config.cache &lt;&lt; EOF
export CC="${CC}"
export CXX="${CXX}"
export AR="${AR}"
export AS="${AS}"
export RANLIB="${RANLIB}"
export LD="${LD}"
export STRIP="${STRIP}"
EOF</userinput></screen>

</sect1>
