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

clfs-3.0.0-systemd systemd
Last change on this file since e8cb61f was 4c68291, checked in by Chris Staub <chris@…>, 11 years ago

Updated gmp doc install instructions

  • Property mode set to 100644
File size: 3.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
[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 \
[4c68291]46 --libdir=/usr/lib64 --enable-cxx \
47 --docdir=/usr/share/doc/gmp-&gmp-version;</userinput></screen>
[6a043e2]48
[dabbced]49 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]50 href="../common/gmp.xml"
51 xpointer="xpointer(//*[@os='c'])"/>
52
[dabbced]53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]54 href="../common/gmp.xml"
55 xpointer="xpointer(//*[@os='d'])"/>
56
[dabbced]57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]58 href="../common/gmp.xml"
59 xpointer="xpointer(//*[@os='e'])"/>
60
[dabbced]61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]62 href="../common/gmp.xml"
63 xpointer="xpointer(//*[@os='f'])"/>
64
[dabbced]65 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]66 href="../common/gmp.xml"
67 xpointer="xpointer(//*[@os='g'])"/>
68
[dabbced]69 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]70 href="../common/gmp.xml"
71 xpointer="xpointer(//*[@os='h'])"/>
72
[dabbced]73 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]74 href="../common/gmp.xml"
75 xpointer="xpointer(//*[@os='i'])"/>
76
[c873165]77 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
78 href="../common/gmp.xml"
79 xpointer="xpointer(//*[@os='j'])"/>
80
81 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
82 href="../common/gmp.xml"
83 xpointer="xpointer(//*[@os='k'])"/>
84
[4c68291]85 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
86 href="../common/gmp.xml"
87 xpointer="xpointer(//*[@os='l'])"/>
88
89 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
90 href="../common/gmp.xml"
91 xpointer="xpointer(//*[@os='m'])"/>
92
93 <para os="n">Create the 64bit header file:</para>
[6a043e2]94
[4c68291]95<screen os="o"><userinput>mv -v /usr/include/gmp{,-64}.h</userinput></screen>
[6a043e2]96
[4c68291]97 <para os="p">Finally, create a stub header in the place of the originals:</para>
[6a043e2]98
[4c68291]99<screen os="q"><userinput>cat &gt; /usr/include/gmp.h &lt;&lt; "EOF"
[6a043e2]100/* gmp.h - Stub Header */
101#ifndef __STUB__GMP_H__
102#define __STUB__GMP_H__
103
104#if defined(__x86_64__) || \
105 defined(__sparc64__) || \
106 defined(__arch64__) || \
107 defined(__powerpc64__) || \
108 defined (__s390x__)
109# include "gmp-64.h"
110#else
111# include "gmp-32.h"
112#endif
113
114#endif /* __STUB__GMP_H__ */
115EOF</userinput></screen>
116
117 </sect2>
118
[dabbced]119 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[6a043e2]120 href="../common/gmp.xml"
121 xpointer="xpointer(id('contents-gmp'))"/>
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.