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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 48e10ed was 4173cd9, checked in by Jim Gifford <clfs@…>, 16 years ago

Updates to Toolchain Fixes.

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