source: BOOK/final-system/multilib/ppl-64bit.xml@ a092f8af

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a092f8af was b6831b6, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Update the LDFLAGS in the final-system between the installation
of EGLIBC and the installation of GCC. This should fix build errors
in a few odd situations, but it is also correct now. Before /usr/lib*
was not being set in rpath-link, just /lib*.

  • Property mode set to 100644
File size: 3.0 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-ppl" role="wrap">
9 <?dbhtml filename="ppl-64bit.html"?>
10
11 <title>PPL-&ppl-version; 64 Bit</title>
12
13 <indexterm zone="ch-system-ppl">
14 <primary sortas="a-PPL">PPL</primary>
15 </indexterm>
16
17 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
18 href="../common/ppl.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
20
21 <sect2 role="installation">
22 <title>Installation of PPL</title>
23
24 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
25 href="../common/ppl.xml"
26 xpointer="xpointer(//*[@os='a'])"/>
27
28<screen os="b"><userinput>CPPFLAGS=-fexceptions CC="gcc -isystem /usr/include ${BUILD64}" \
29CXX="g++ -isystem /usr/include ${BUILD64}" \
30LDFLAGS="-Wl,-rpath-link,/usr/lib64:/lib64 ${BUILD64}" \
31 ./configure --prefix=/usr --libdir=/usr/lib64 \
32 --enable-shared --disable-optimization</userinput></screen>
33
34 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
35 href="../common/ppl.xml"
36 xpointer="xpointer(//*[@os='c'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
39 href="../common/ppl.xml"
40 xpointer="xpointer(//*[@os='d'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
43 href="../common/ppl.xml"
44 xpointer="xpointer(//*[@os='e'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
47 href="../common/ppl.xml"
48 xpointer="xpointer(//*[@os='f'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
51 href="../common/ppl.xml"
52 xpointer="xpointer(//*[@os='g'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
55 href="../common/ppl.xml"
56 xpointer="xpointer(//*[@os='h'])"/>
57
58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
59 href="../common/ppl.xml"
60 xpointer="xpointer(//*[@os='i'])"/>
61
62 <para os="m1">Prepare <filename>ppl-config</filename> to be wrapped by
63 the multiarch wrapper and then wrap it:</para>
64
65<screen os="m2"><userinput>mv -v /usr/bin/ppl-config{,-64}
66ln -svf multiarch_wrapper /usr/bin/ppl-config</userinput></screen>
67
68 <para os="j">Create the 64bit header file:</para>
69
70<screen os="k"><userinput>mv -v /usr/include/ppl{,-64}.hh</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/ppl.hh &lt;&lt; "EOF"
75/* ppl.hh - Stub Header */
76#ifndef __STUB__PPL_HH__
77#define __STUB__PPL_HH__
78
79#if defined(__x86_64__) || \
80 defined(__sparc64__) || \
81 defined(__arch64__) || \
82 defined(__powerpc64__) || \
83 defined (__s390x__)
84# include "ppl-64.h"
85#else
86# include "ppl-32.h"
87#endif
88
89#endif /* __STUB__PPL_HH__ */
90EOF</userinput></screen>
91
92 </sect2>
93
94 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
95 href="../common/ppl.xml"
96 xpointer="xpointer(id('contents-ppl'))"/>
97
98</sect1>
Note: See TracBrowser for help on using the repository browser.