source: BOOK/final-system/64/binutils.xml@ 1b0e473

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

Updated Clean Toolchain Build - Binutils

  • Property mode set to 100644
File size: 4.7 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-binutils" role="wrap">
9 <?dbhtml filename="binutils.html"?>
10
11 <title>Binutils-&binutils-version;</title>
12
13 <indexterm zone="ch-system-binutils">
14 <primary sortas="a-Binutils">Binutils</primary>
15 </indexterm>
16
17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18 href="../common/binutils.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
20
21 <sect2 role="installation">
22 <title>Installation of Binutils</title>
23
24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
25 href="../common/binutils.xml"
26 xpointer="xpointer(//*[@os='b'])"/>
27
28 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
29 href="../common/binutils.xml"
30 xpointer="xpointer(//*[@os='c'])"/>
31
32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
33 href="../common/binutils.xml"
34 xpointer="xpointer(//*[@os='d'])"/>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../common/binutils.xml"
38 xpointer="xpointer(//*[@os='e'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../common/binutils.xml"
42 xpointer="xpointer(//*[@os='f'])"/>
43
44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45 href="../common/binutils.xml"
46 xpointer="xpointer(//*[@os='p1'])"/>
47
48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
49 href="../common/binutils.xml"
50 xpointer="xpointer(//*[@os='p2'])"/>
51
52 <para os="q1">Libiberty uses <command>gcc -print-multi-os-directory</command>
53 to determine where to install libiberty.a. Because our temporary gcc is
54 still multilib-aware, the command returns <literal>../lib64</literal> which
55 causes the archive to be installed into /usr/lib64. The following sed will
56 prevent this:</para>
57
58<screen os="q2"><userinput>sed -i 's%\(^MULTIOSDIR = \).*%\1 ../lib%' libiberty/Makefile.in</userinput></screen>
59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="../common/binutils.xml"
62 xpointer="xpointer(//*[@os='g'])"/>
63
64 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
65 href="../common/binutils.xml"
66 xpointer="xpointer(//*[@os='h'])"/>
67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="../common/binutils.xml"
70 xpointer="xpointer(//*[@os='i'])"/>
71
72<screen os="ca"><userinput>CC="gcc -Wl,-rpath-link,/lib -isystem /usr/include" \
73 ../binutils-&binutils-version;/configure --prefix=/usr \
74 --libdir=/usr/lib --enable-shared \
75 --disable-multilib --enable-64-bit-bfd</userinput></screen>
76
77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
78 href="../common/binutils.xml"
79 xpointer="xpointer(//*[@os='j'])"/>
80
81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
82 href="../common/binutils.xml"
83 xpointer="xpointer(//*[@os='k'])"/>
84
85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
86 href="../common/binutils.xml"
87 xpointer="xpointer(//*[@os='l'])"/>
88
89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
90 href="../common/binutils.xml"
91 xpointer="xpointer(//*[@os='m'])"/>
92
93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
94 href="../common/binutils.xml"
95 xpointer="xpointer(//*[@os='n'])"/>
96
97 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
98 href="../common/binutils.xml"
99 xpointer="xpointer(//*[@os='o'])"/>
100
101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
102 href="../common/binutils.xml"
103 xpointer="xpointer(//*[@os='p'])"/>
104
105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
106 href="../common/binutils.xml"
107 xpointer="xpointer(//*[@os='q'])"/>
108
109 <para os="w1">Now that the tests have completed, remove the symlinks in
110 /usr/lib64 - they should be the only things in that directory, so we
111 can remove it without force :</para>
112
113<screen os="w2"><userinput>rm -v /usr/lib64/libstd*so*
114rmdir -v /usr/lib64</userinput></screen>
115
116 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
117 href="../common/binutils.xml"
118 xpointer="xpointer(//*[@os='r'])"/>
119
120 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
121 href="../common/binutils.xml"
122 xpointer="xpointer(//*[@os='s'])"/>
123
124 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
125 href="../common/binutils.xml"
126 xpointer="xpointer(//*[@os='t'])"/>
127
128 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
129 href="../common/binutils.xml"
130 xpointer="xpointer(//*[@os='u'])"/>
131
132 </sect2>
133
134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="../common/binutils.xml"
136 xpointer="xpointer(id('contents-binutils'))"/>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.