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

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

Add CXX= to GMP Multilib.

  • 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
[f165f0b]28<screen os="b"><userinput>CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
29 ./configure --prefix=/usr \
[6a043e2]30 --libdir=/usr/lib64 --enable-cxx \
31 --enable-mpbsd</userinput></screen>
32
33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
34 href="../common/gmp.xml"
35 xpointer="xpointer(//*[@os='c'])"/>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../common/gmp.xml"
39 xpointer="xpointer(//*[@os='d'])"/>
40
41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../common/gmp.xml"
43 xpointer="xpointer(//*[@os='e'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../common/gmp.xml"
47 xpointer="xpointer(//*[@os='f'])"/>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/gmp.xml"
51 xpointer="xpointer(//*[@os='g'])"/>
52
53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
54 href="../common/gmp.xml"
55 xpointer="xpointer(//*[@os='h'])"/>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../common/gmp.xml"
59 xpointer="xpointer(//*[@os='i'])"/>
60
61 <para os="j">Create the 64bit header file:</para>
62
[7b31c44]63<screen os="k"><userinput>mv -v /usr/include/gmp{,-64}.h</userinput></screen>
[6a043e2]64
65 <para os="l">Finally, Create a stub header in the place of the originals:</para>
66
67<screen os="m"><userinput>cat &gt; /usr/include/gmp.h &lt;&lt; "EOF"
68/* gmp.h - Stub Header */
69#ifndef __STUB__GMP_H__
70#define __STUB__GMP_H__
71
72#if defined(__x86_64__) || \
73 defined(__sparc64__) || \
74 defined(__arch64__) || \
75 defined(__powerpc64__) || \
76 defined (__s390x__)
77# include "gmp-64.h"
78#else
79# include "gmp-32.h"
80#endif
81
82#endif /* __STUB__GMP_H__ */
83EOF</userinput></screen>
84
85 </sect2>
86
87 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
88 href="../common/gmp.xml"
89 xpointer="xpointer(id('contents-gmp'))"/>
90
91</sect1>
Note: See TracBrowser for help on using the repository browser.