source: BOOK/final-system/common/gmp.xml@ 02ac3c73

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 02ac3c73 was 0c7419e8, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Make a bunch of cp and mv commands verbose.

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[6a043e2]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-system-gmp" role="wrap">
9 <?dbhtml filename="gmp.html"?>
10
11 <title>GMP-&gmp-version;</title>
12
13 <indexterm zone="ch-system-gmp">
14 <primary sortas="a-GMP">GMP</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>GMP is a library for arithmetic on arbitrary precision integers,
21 rational numbers, and floating-point numbers.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of GMP</title>
27
[8cfdc18]28<!--
[be71788]29 <para os="p1">The following patch contains a number of updates to the
30 &gmp-version; branch by the GMP developers:</para>
31
32<screen os="p2"><userinput>patch -Np1 -i ../&gmp-branch_update-patch;</userinput></screen>
33
[8cfdc18]34-->
[616b1809]35
36 <note os="n1">
37 <para>If you are compiling this package on a different CPU then you plan to
38 run the CLFS system on. You must replace GMP's <filename>config.guess</filename>
39 and <filename>config.sub</filename> wrappers with the originals. This will
40 prevent GMP from optimizing for the wrong CPU. You can make this change with
41 the following command:</para>
42
[0c7419e8]43<screen><userinput>mv -v config{fsf,}.guess
44mv -v config{fsf,}.sub</userinput></screen>
[616b1809]45
46 </note>
47
[6a043e2]48 <para os="a">Prepare GMP for compilation:</para>
49
[9470388]50<screen os="b"><userinput>CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include" \
51 CXX="g++ -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \
52 ./configure --prefix=/usr --enable-cxx --enable-mpbsd</userinput></screen>
[6a043e2]53
54 <para os="c">Compile the package:</para>
55
56<screen os="d"><userinput>make</userinput></screen>
57
58 <important os="e">
59 <para>The test suite for GMP is considered
60 critical. Do not skip it under any circumstance.</para>
61 </important>
62
63 <para os="f">Test the results:</para>
64
65<screen os="g"><userinput>make check</userinput></screen>
66
67 <para os="h">Install the package:</para>
68
69<screen os="i"><userinput>make install</userinput></screen>
70
71 </sect2>
72
73 <sect2 id="contents-gmp" role="content">
74 <title>Contents of GMP</title>
75
76 <segmentedlist>
[f4ab0fd]77 <segtitle>Installed libraries</segtitle>
[6a043e2]78
79 <seglistitem>
[188b6b2]80 <seg>libgmp.[a,so], libgmpxx.[a,so], libmp.[a,so]</seg>
[6a043e2]81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="libgmp">
90 <term><filename class="libraryfile">libgmp</filename></term>
91 <listitem>
92 <para>Contains the definitions for GNU multiple precision functions.</para>
93 <indexterm zone="ch-system-gmp libgmp">
[f4ab0fd]94 <primary sortas="c-libgmp">libgmp</primary>
[6a043e2]95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="libgmpxx">
100 <term><filename class="libraryfile">libgmpxx</filename></term>
101 <listitem>
102 <para>Contains a C++ class wrapper for GMP types.</para>
103 <indexterm zone="ch-system-gmp libgmpxx">
[f4ab0fd]104 <primary sortas="c-libgmpxx">libgmpxx</primary>
[6a043e2]105 </indexterm>
106 </listitem>
107 </varlistentry>
108
[188b6b2]109 <varlistentry id="libmp">
110 <term><filename class="libraryfile">libmp</filename></term>
111 <listitem>
112 <para>Contains the Berkeley MP compatibility library.</para>
113 <indexterm zone="ch-system-gmp libmp">
[f4ab0fd]114 <primary sortas="c-libmp">libmp</primary>
[188b6b2]115 </indexterm>
116 </listitem>
117 </varlistentry>
118
[6a043e2]119 </variablelist>
120
121 </sect2>
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.