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

systemd
Last change on this file since 479720a was 7cd7f99, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

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