<?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-cross-tools-gmp" role="wrap">
  <?dbhtml filename="gmp.html"?>

  <title>GMP-&gmp-version;</title>

  <indexterm zone="ch-cross-tools-gmp">
    <primary sortas="a-GMP">GMP</primary>
    <secondary>cross tools</secondary>
  </indexterm>

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

  <sect2 role="installation">
    <title>Installation of GMP</title>

<!--
    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../final-system/common/gmp.xml"
    xpointer="xpointer(//*[@os='p1'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../final-system/common/gmp.xml"
    xpointer="xpointer(//*[@os='p2'])"/>
-->

    <note os="n1">
      <para>If you are building with a host which has 32-bit user-space with a
      64-bit capable CPU, cross-tools GMP will attempt to link with 64-bit
      libraries. Add the following variable during <command>configure</command>
      to force GMP's ABI: <command>./configure ABI=32</command></para>
    </note>

    <para os="a">Prepare GMP for compilation:</para>

<screen os="b"><userinput>./configure --prefix=/cross-tools --enable-cxx \
  --disable-static</userinput></screen>

    <variablelist os="b1">
      <title>The meaning of the new configure option:</title>

      <varlistentry>
        <term><parameter>--enable-cxx</parameter></term>
        <listitem>
          <para>This tells GMP to enable C++ support.</para>
        </listitem>
      </varlistentry>

    </variablelist>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <para os="e">Install the package:</para>

<screen os="f"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 role="content">
    <title/>

    <para>Details on this package are located in <xref
    linkend="contents-gmp" role="."/></para>

  </sect2>

</sect1>
