[e1b2402] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-cross-tools-gmp" role="wrap">
|
---|
| 9 | <?dbhtml filename="gmp.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>GMP-&gmp-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-cross-tools-gmp">
|
---|
| 14 | <primary sortas="a-GMP">GMP</primary>
|
---|
| 15 | <secondary>cross-tools</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <sect2 role="package">
|
---|
| 19 | <title/>
|
---|
| 20 |
|
---|
| 21 | <para>GMP is a library for arithmetic on arbitrary precision integers,
|
---|
| 22 | rational numbers, and floating-point numbers.</para>
|
---|
| 23 |
|
---|
| 24 | </sect2>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="installation">
|
---|
| 27 | <title>Installation of GMP</title>
|
---|
| 28 |
|
---|
| 29 | <para os="a">Prepare GMP for compilation:</para>
|
---|
| 30 |
|
---|
[b0b1007] | 31 | <screen os="b"><userinput>CPPFLAGS=-fexceptions ./configure \
|
---|
| 32 | --prefix=${CLFS}/cross-tools</userinput></screen>
|
---|
[e1b2402] | 33 |
|
---|
| 34 | <para os="c">Compile the package:</para>
|
---|
| 35 |
|
---|
| 36 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 37 |
|
---|
[285d1d0] | 38 | <note os="e">
|
---|
| 39 | <para>Some versions of GCC (notably 4.3.2 which ships with Debian
|
---|
| 40 | 5) will compile GMP without errors but in a subtly broken way. To ensure
|
---|
| 41 | GMP is compiled and functioning correctly, optionally run the test suite:</para>
|
---|
[e1b2402] | 42 |
|
---|
[deb99a3] | 43 | <screen><userinput>make check</userinput></screen>
|
---|
[285d1d0] | 44 | </note>
|
---|
| 45 |
|
---|
| 46 | <para os="f">Install the package:</para>
|
---|
| 47 |
|
---|
| 48 | <screen os="g"><userinput>make install</userinput></screen>
|
---|
[e1b2402] | 49 |
|
---|
| 50 | </sect2>
|
---|
| 51 |
|
---|
| 52 | <sect2 id="contents-gmp" role="content">
|
---|
| 53 | <title>Contents of GMP</title>
|
---|
| 54 |
|
---|
| 55 | <segmentedlist>
|
---|
| 56 | <segtitle>Installed Libraries</segtitle>
|
---|
| 57 |
|
---|
| 58 | <seglistitem>
|
---|
| 59 | <seg>libgmp.[a,so]</seg>
|
---|
| 60 | </seglistitem>
|
---|
| 61 | </segmentedlist>
|
---|
| 62 |
|
---|
| 63 | <variablelist>
|
---|
| 64 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 65 | <?dbfo list-presentation="list"?>
|
---|
| 66 | <?dbhtml list-presentation="table"?>
|
---|
| 67 |
|
---|
| 68 | <varlistentry id="libgmp">
|
---|
| 69 | <term><filename class="libraryfile">libgmp</filename></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>Contains the definitions for GNU multiple precision functions.</para>
|
---|
| 72 | <indexterm zone="ch-cross-tools-gmp libgmp">
|
---|
| 73 | <primary sortas="b-libgmp">libgmp</primary>
|
---|
| 74 | </indexterm>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | </variablelist>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | </sect1>
|
---|