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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fe3e01c1 was 6b11f9b0, checked in by Jim Gifford <clfs@…>, 16 years ago

Updated Clean Toolchain Build - GMP

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