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

  <title>MPFR-&mpfr-version;</title>

  <indexterm zone="ch-system-mpfr">
    <primary sortas="a-MPFR">MPFR</primary>
    <secondary>temporary system</secondary>
  </indexterm>

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

    <para>The MPFR library is a C library for multiple-precision floating-point
    computations with correct rounding.</para>

  </sect2>

  &env-target;

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

    <para os="p1">The following patch contains a number of updates to the
    &mpfr-version; branch by the MPFR developers:</para>

<screen os="p2"><userinput>patch -Np1 -i ../&mpfr-branch_update-patch;</userinput></screen>

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

<screen os="b"><userinput>./configure --prefix=/usr --enable-shared \
    --build=${CLFS_HOST} --host=${CLFS_TARGET} \
    --with-gmp-lib=${CLFS}/usr/lib</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/libmpfr.la</userinput></screen>

  </sect2>

  <sect2 id="contents-mpfr" role="content">
    <title>Contents of MPFR</title>

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

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

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

      <varlistentry id="libmpfr">
        <term><filename class="libraryfile">libmpfr</filename></term>
        <listitem>
          <para>The Multiple Precision Floating-Point Reliable Library.</para>
          <indexterm zone="ch-system-mpfr libmpfr">
            <primary sortas="b-libmpfr">libmpfr</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>