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

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 3c0198b was c873165, checked in by William Harrington <kb0iic@…>, 11 years ago

Install documentation with versioned directory and add/update installed directories.

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