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

clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 3ed0369 was 3ed0369, checked in by William Harrington <kb0iic@…>, 10 years ago

Update gmp configure commands after removing PPL.

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