[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,
|
---|
[65257bb] | 22 | rational numbers, and floating-point numbers. It is required in order to
|
---|
| 23 | build GCC.</para>
|
---|
[e1b2402] | 24 |
|
---|
| 25 | </sect2>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="installation">
|
---|
| 28 | <title>Installation of GMP</title>
|
---|
| 29 |
|
---|
| 30 | <para os="a">Prepare GMP for compilation:</para>
|
---|
| 31 |
|
---|
[b0b1007] | 32 | <screen os="b"><userinput>CPPFLAGS=-fexceptions ./configure \
|
---|
[bacf874] | 33 | --build=${CLFS_HOST} --prefix=${CLFS}/cross-tools</userinput></screen>
|
---|
[e1b2402] | 34 |
|
---|
| 35 | <para os="c">Compile the package:</para>
|
---|
| 36 |
|
---|
| 37 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 38 |
|
---|
[285d1d0] | 39 | <note os="e">
|
---|
[d92e1b8] | 40 | <para>To ensure GMP is compiled and functioning correctly, optionally run
|
---|
| 41 | 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>
|
---|