<?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-temp-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 ${BUILD64}"
export CXX="${CLFS_TARGET}-g++ ${BUILD64}"
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>

    <variablelist os="ca">
      <title>The meaning of the new configure options:</title>

      <varlistentry os="dd1">
        <term><parameter>CXX="${CXX} ${BUILD64}"</parameter></term>
        <listitem>
          <para>This forces the C++ compiler to use our 64 Bit flags.</para>
        </listitem>
      </varlistentry>

    </variablelist>

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

<screen><userinput>echo export CC=\""${CC}\"" &gt;&gt; ~/.bashrc
echo export CXX=\""${CXX}\"" &gt;&gt; ~/.bashrc
echo export AR=\""${AR}\"" &gt;&gt; ~/.bashrc
echo export AS=\""${AS}\"" &gt;&gt; ~/.bashrc
echo export RANLIB=\""${RANLIB}\"" &gt;&gt; ~/.bashrc
echo export LD=\""${LD}\"" &gt;&gt; ~/.bashrc
echo export STRIP=\""${STRIP}\"" &gt;&gt; ~/.bashrc</userinput></screen>

</sect1>
