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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1c78387 was 9470388, checked in by Zack Winkles <eikniw@…>, 15 years ago

Add CLooG/PPL, and use it everything.

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