source: BOOK/final-system/multilib/gmp-64bit.xml@ 33bdb0d

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 33bdb0d was 6a043e2, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Upgrade to GCC 4.3.1.

  • Property mode set to 100644
File size: 2.6 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-64bit.html"?>
10
11 <title>GMP-&gmp-version; 64 Bit</title>
12
13 <indexterm zone="ch-system-gmp">
14 <primary sortas="a-GMP">GMP</primary>
15 </indexterm>
16
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18 href="../common/gmp.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
20
21 <sect2 role="installation">
22 <title>Installation of GMP</title>
23
24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
25 href="../common/gmp.xml"
26 xpointer="xpointer(//*[@os='a'])"/>
27
28<screen os="b"><userinput>CC="gcc ${BUILD64}" ./configure --prefix=/usr \
29 --libdir=/usr/lib64 --enable-cxx \
30 --enable-mpbsd</userinput></screen>
31
32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
33 href="../common/gmp.xml"
34 xpointer="xpointer(//*[@os='c'])"/>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../common/gmp.xml"
38 xpointer="xpointer(//*[@os='d'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../common/gmp.xml"
42 xpointer="xpointer(//*[@os='e'])"/>
43
44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45 href="../common/gmp.xml"
46 xpointer="xpointer(//*[@os='f'])"/>
47
48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
49 href="../common/gmp.xml"
50 xpointer="xpointer(//*[@os='g'])"/>
51
52 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
53 href="../common/gmp.xml"
54 xpointer="xpointer(//*[@os='h'])"/>
55
56 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
57 href="../common/gmp.xml"
58 xpointer="xpointer(//*[@os='i'])"/>
59
60 <para os="j">Create the 64bit header file:</para>
61
62<screen os="k"><userinput>mv /usr/include/gmp{,-64}.h</userinput></screen>
63
64 <para os="l">Finally, Create a stub header in the place of the originals:</para>
65
66<screen os="m"><userinput>cat &gt; /usr/include/gmp.h &lt;&lt; "EOF"
67/* gmp.h - Stub Header */
68#ifndef __STUB__GMP_H__
69#define __STUB__GMP_H__
70
71#if defined(__x86_64__) || \
72 defined(__sparc64__) || \
73 defined(__arch64__) || \
74 defined(__powerpc64__) || \
75 defined (__s390x__)
76# include "gmp-64.h"
77#else
78# include "gmp-32.h"
79#endif
80
81#endif /* __STUB__GMP_H__ */
82EOF</userinput></screen>
83
84 </sect2>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="../common/gmp.xml"
88 xpointer="xpointer(id('contents-gmp'))"/>
89
90</sect1>
Note: See TracBrowser for help on using the repository browser.