Subversion Repositories svn LFS-FR

Rev

Blame | Last modification | View Log | RSS feed

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

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

  <indexterm zone="ch-system-gmp">
    <primary sortas="a-GMP">GMP</primary>
    <secondary>temporary system</secondary>
  </indexterm>

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

    <para>GMP is a library for arithmetic on arbitrary precision integers,
    rational numbers, and floating-point numbers.</para>

  </sect2>

  &env-target;

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

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

<screen os="b"><userinput>CPPFLAGS=-fexceptions ./configure --prefix=/usr \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --enable-cxx --enable-mpbsd</userinput></screen>

    <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 DESTDIR=${CLFS} install</userinput></screen>

    <para os="g">At this time, Libtool does not support searching a sysroot
    for libraries. Leaving the .la files in place will cause Libtool to look
    in the wrong place for libraries. These files are not required for
    linking on Linux. Remove them with the following command:</para>

<screen os="h"><userinput>rm -v ${CLFS}/usr/lib/lib{gmp,gmpxx,mp}.la</userinput></screen>

  </sect2>

  <sect2 id="contents-gmp" role="content">
    <title>Contents of GMP</title>

    <segmentedlist>
      <segtitle>Installed Libraries</segtitle>

      <seglistitem>
        <seg>libgmp.[a,so], libgmpxx[a,so]</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libgmp">
        <term><filename class="libraryfile">libgmp</filename></term>
        <listitem>
          <para>Contains the definitions for GNU multiple precision functions.</para>
          <indexterm zone="ch-system-gmp libgmp">
            <primary sortas="b-libgmp">libgmp</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="libgmpxx">
        <term><filename class="libraryfile">libgmpxx</filename></term>
        <listitem>
          <para>Contains a C++ class wrapper for GMP types.</para>
          <indexterm zone="ch-system-gmp libgmpxx">
            <primary sortas="b-libgmpxx">libgmpxx</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>