[88958a8] | 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>
|
---|
[979b26f] | 15 | <secondary>cross tools</secondary>
|
---|
[88958a8] | 16 | </indexterm>
|
---|
| 17 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[88958a8] | 19 | href="../../final-system/common/gmp.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of GMP</title>
|
---|
| 24 |
|
---|
[8cfdc18] | 25 | <!--
|
---|
[dabbced] | 26 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[88958a8] | 27 | href="../../final-system/common/gmp.xml"
|
---|
| 28 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 29 |
|
---|
[dabbced] | 30 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[88958a8] | 31 | href="../../final-system/common/gmp.xml"
|
---|
| 32 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
[8cfdc18] | 33 | -->
|
---|
[88958a8] | 34 |
|
---|
[6fde8a9] | 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 |
|
---|
[88958a8] | 39 | <para os="a">Prepare GMP for compilation:</para>
|
---|
| 40 |
|
---|
[7cd7f99] | 41 | <screen os="b"><userinput>./configure \
|
---|
| 42 | --prefix=/cross-tools \
|
---|
| 43 | --enable-cxx \
|
---|
[04c3a53] | 44 | --disable-static</userinput></screen>
|
---|
[88958a8] | 45 |
|
---|
[d755bc7] | 46 | <variablelist os="b1">
|
---|
[86735361] | 47 | <title>The meaning of the new configure option:</title>
|
---|
[d755bc7] | 48 |
|
---|
| 49 | <varlistentry>
|
---|
| 50 | <term><parameter>--enable-cxx</parameter></term>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>This tells GMP to enable C++ support.</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | </varlistentry>
|
---|
| 55 |
|
---|
[5201afa] | 56 | <varlistentry>
|
---|
| 57 | <term><parameter>--disable-static</parameter></term>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>This tells the GMP package not to compile or install static
|
---|
| 60 | libraries, which are not needed for the Cross-Tools</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </varlistentry>
|
---|
| 63 |
|
---|
[d755bc7] | 64 | </variablelist>
|
---|
| 65 |
|
---|
[88958a8] | 66 | <para os="c">Compile the package:</para>
|
---|
| 67 |
|
---|
| 68 | <screen os="d"><userinput>make</userinput></screen>
|
---|
| 69 |
|
---|
| 70 | <para os="e">Install the package:</para>
|
---|
| 71 |
|
---|
| 72 | <screen os="f"><userinput>make install</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2 role="content">
|
---|
| 77 | <title/>
|
---|
| 78 |
|
---|
| 79 | <para>Details on this package are located in <xref
|
---|
| 80 | linkend="contents-gmp" role="."/></para>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | </sect1>
|
---|