source: BOOK/temp-system/common/gmp.xml@ 427e466

sysvinit
Last change on this file since 427e466 was b27081c4, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 2.3 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-temp-system-gmp" role="wrap">
9 <?dbhtml filename="gmp.html"?>
10
11 <title>GMP-&gmp-version;</title>
12
13 <indexterm zone="ch-temp-system-gmp">
14 <primary sortas="a-GMP">GMP</primary>
15 <secondary>temporary system</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]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"
[be71788]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"
[be71788]31 href="../../final-system/common/gmp.xml"
32 xpointer="xpointer(//*[@os='p2'])"/>
[8cfdc18]33-->
[be71788]34
[715d370d]35 <para os="a">As with the Cross-Tools, we will compile GMP, MPFR, MPC, and
36 ISL so that GCC can use them, though this time we will
[b5c851a]37 cross-compile them into <filename class="directory">/tools</filename>.</para>
[6a043e2]38
[b5c851a]39 <para os="b">Prepare GMP for compilation:</para>
40
[b27081c4]41<screen os="c"><userinput>CC_FOR_BUILD=gcc \
42./configure \
43 --prefix=/tools \
44 --build=${CLFS_HOST} \
45 --host=${CLFS_TARGET} \
[9470388]46 --enable-cxx</userinput></screen>
[6a043e2]47
[b5c851a]48 <variablelist os="ca">
49 <title>The meaning of the new configure option:</title>
50
51 <varlistentry os="ca1">
52 <term><parameter>CC_FOR_BUILD=gcc</parameter></term>
53 <listitem>
54 <para>Tells <command>configure</command> to use the host's
55 <command>gcc</command> instead of our cross-compiler to build
56 native tools it needs while compiling.</para>
57 </listitem>
58 </varlistentry>
59
60 </variablelist>
61
62 <para os="d">Compile the package:</para>
[6a043e2]63
[b5c851a]64<screen os="e"><userinput>make</userinput></screen>
[6a043e2]65
[b5c851a]66 <para os="f">Install the package:</para>
[6a043e2]67
[b5c851a]68<screen os="g"><userinput>make install</userinput></screen>
[6a043e2]69
70 </sect2>
71
72 <sect2 role="content">
73 <title/>
74
75 <para>Details on this package are located in <xref
76 linkend="contents-gmp" role="."/></para>
77
78 </sect2>
79
80</sect1>
Note: See TracBrowser for help on using the repository browser.