source: BOOK/cross-tools/common/gmp.xml@ bca2990

clfs-3.0.0-sysvinit sysvinit
Last change on this file since bca2990 was 6fde8a9, checked in by Chris Staub <chris@…>, 11 years ago

Added more explanatory text to cross-tools

  • Property mode set to 100644
File size: 2.3 KB
Line 
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 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
19 href="../../final-system/common/gmp.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of GMP</title>
24
25<!--
26 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
27 href="../../final-system/common/gmp.xml"
28 xpointer="xpointer(//*[@os='p1'])"/>
29
30 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
31 href="../../final-system/common/gmp.xml"
32 xpointer="xpointer(//*[@os='p2'])"/>
33-->
34
35 <para>This package and the next two - MPFR and MPC - will be installed
36 into <filename class="directory">/cross-tools</filename> because GCC
37 requires them to build.</para>
38
39 <note os="n1">
40 <para>If you are building with a host which has 32-bit user-space with a
41 64-bit capable CPU, cross-tools GMP will attempt to link with 64-bit
42 libraries. Add the following variable during <command>configure</command>
43 to force GMP's ABI: <command>./configure ABI=32</command></para>
44 </note>
45
46 <para os="a">Prepare GMP for compilation:</para>
47
48<screen os="b"><userinput>./configure --prefix=/cross-tools --enable-cxx \
49 --disable-static</userinput></screen>
50
51 <variablelist os="b1">
52 <title>The meaning of the new configure option:</title>
53
54 <varlistentry>
55 <term><parameter>--enable-cxx</parameter></term>
56 <listitem>
57 <para>This tells GMP to enable C++ support.</para>
58 </listitem>
59 </varlistentry>
60
61 </variablelist>
62
63 <para os="c">Compile the package:</para>
64
65<screen os="d"><userinput>make</userinput></screen>
66
67 <para os="e">Install the package:</para>
68
69<screen os="f"><userinput>make install</userinput></screen>
70
71 </sect2>
72
73 <sect2 role="content">
74 <title/>
75
76 <para>Details on this package are located in <xref
77 linkend="contents-gmp" role="."/></para>
78
79 </sect2>
80
81</sect1>
Note: See TracBrowser for help on using the repository browser.