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