<?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;
]>

<!-- MIPS GCC-Static -->

<sect1 id="ch-cross-tools-gcc-static" role="wrap">
  <?dbhtml filename="gcc-static.html"?>

  <title>Cross GCC-&gcc-version; - Static</title>

  <indexterm zone="ch-cross-tools-gcc-static">
    <primary sortas="a-GCC">GCC</primary>
    <secondary>cross tools, static</secondary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@role='package'])"/>

  <sect2 role="installation">

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='a'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='c'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='d'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='e'])"/>

<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
  ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
  --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
  --with-sysroot=${CLFS} --disable-nls  --disable-shared \
  --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
  --with-mpc=${CLFS}/cross-tools --without-headers --with-newlib \
  --disable-decimal-float --disable-libgomp --disable-libmudflap \
  --disable-libssp --disable-threads --enable-languages=c \
  --disable-multilib --with-abi=${CLFS_ABI} --with-arch=mips${CLFS_MIPS_LEVEL} \
  --with-float=${CLFS_FLOAT} --with-endian=${CLFS_ENDIAN}</userinput></screen>

<!-- Common configure switches for all archs -->
  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='af'])"/>

<!-- Specific configure switches for MIPS -->
  <variablelist os="ag">

    <varlistentry os="ag1">
      <term><parameter>--with-abi=${CLFS_ABI}</parameter></term>
      <listitem>
        <para>This option sets the ABI selected earlier.</para>
      </listitem>
    </varlistentry>
    <varlistentry os="ag2">
      <term><parameter>--with-arch=mips${CLFS_MIPS_LEVEL}</parameter></term>
      <listitem>
        <para>This option sets the MIPS architecture ISA.  Generic options
        that apply to this book are of the form "mips${CLFS_MIPS_LEVEL}".
        For example, "mips1" or "mips3".  For a more expanded list of choices,
        please see the GCC documentation at
        <ulink url="http://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html" /></para>
      </listitem>
    </varlistentry>
    <varlistentry os="ag3">
      <term><parameter>--with-float=${CLFS_FLOAT}</parameter></term>
      <listitem>
        <para>This option sets the floating point mode selected earlier.</para>
      </listitem>
    </varlistentry>
    <varlistentry os="ag4">
      <term><parameter>--with-endian=${CLFS_ENDIAN}</parameter></term>
      <listitem>
        <para>This option sets the endianess of the CPU selected earlier.
        GCC's configure scripts may not be able to determine the endianess
        based only on the target triplet (as other architectures do).</para>
      </listitem>
    </varlistentry>

  </variablelist>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='ah'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='ai'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='aj'])"/>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@os='ak'])"/>

  </sect2>

  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  href="../common/gcc-static.xml"
  xpointer="xpointer(//*[@role='content'])"/>

</sect1>
