[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 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 |
|
---|
[663c5a6] | 17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 18 | href="../common/binutils.xml"
|
---|
| 19 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 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 |
|
---|
[6aff9c0] | 44 | <para os="q1">Libiberty uses
|
---|
| 45 | <command>gcc -print-multi-os-directory</command> to determine where to
|
---|
| 46 | install <filename class="libraryfile">libiberty.a</filename>. Because our
|
---|
| 47 | temporary GCC is still multilib-aware, the command returns
|
---|
| 48 | <literal>../lib64</literal> which causes the archive to be installed into
|
---|
| 49 | <filename class="directory">/usr/lib64</filename>. The following sed will
|
---|
[7b7f61b2] | 50 | prevent this:</para>
|
---|
| 51 |
|
---|
| 52 | <screen os="q2"><userinput>sed -i 's%\(^MULTIOSDIR = \).*%\1 ../lib%' libiberty/Makefile.in</userinput></screen>
|
---|
| 53 |
|
---|
[3f8be484] | 54 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 55 | href="../common/binutils.xml"
|
---|
| 56 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 57 |
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 59 | href="../common/binutils.xml"
|
---|
| 60 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 61 |
|
---|
| 62 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 63 | href="../common/binutils.xml"
|
---|
| 64 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 65 |
|
---|
[4173cd9] | 66 | <screen os="ca"><userinput>CC="gcc -isystem /usr/include" \
|
---|
| 67 | LDFLAGS="-Wl,-rpath-link,/lib" \
|
---|
[cef9831] | 68 | ../binutils-&binutils-version;/configure --prefix=/usr \
|
---|
[f50b4d1] | 69 | --libdir=/usr/lib --enable-shared \
|
---|
| 70 | --disable-multilib --enable-64-bit-bfd</userinput></screen>
|
---|
[3f8be484] | 71 |
|
---|
| 72 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 73 | href="../common/binutils.xml"
|
---|
| 74 | xpointer="xpointer(//*[@os='j'])"/>
|
---|
| 75 |
|
---|
| 76 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 77 | href="../common/binutils.xml"
|
---|
| 78 | xpointer="xpointer(//*[@os='k'])"/>
|
---|
| 79 |
|
---|
| 80 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 81 | href="../common/binutils.xml"
|
---|
| 82 | xpointer="xpointer(//*[@os='l'])"/>
|
---|
| 83 |
|
---|
| 84 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 85 | href="../common/binutils.xml"
|
---|
| 86 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 87 |
|
---|
| 88 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 89 | href="../common/binutils.xml"
|
---|
| 90 | xpointer="xpointer(//*[@os='n'])"/>
|
---|
| 91 |
|
---|
| 92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 93 | href="../common/binutils.xml"
|
---|
| 94 | xpointer="xpointer(//*[@os='o'])"/>
|
---|
| 95 |
|
---|
[936dcb48] | 96 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 97 | href="../common/binutils.xml"
|
---|
| 98 | xpointer="xpointer(//*[@os='ts1'])"/>
|
---|
| 99 |
|
---|
| 100 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 101 | href="../common/binutils.xml"
|
---|
| 102 | xpointer="xpointer(//*[@os='ts2'])"/>
|
---|
| 103 |
|
---|
[3f8be484] | 104 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 105 | href="../common/binutils.xml"
|
---|
| 106 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 107 |
|
---|
| 108 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 109 | href="../common/binutils.xml"
|
---|
| 110 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 111 |
|
---|
[28e6dc4] | 112 | <para os="w1">Now that the tests have completed, remove the symlinks in
|
---|
[6aff9c0] | 113 | <filename class="directory">/usr/lib64</filename> - they should be the
|
---|
| 114 | only things in that directory, so we can remove it without force:</para>
|
---|
[28e6dc4] | 115 |
|
---|
[13b70f8] | 116 | <screen os="w2"><userinput>rm -v /usr/lib64/libstd*so*
|
---|
[28e6dc4] | 117 | rmdir -v /usr/lib64</userinput></screen>
|
---|
| 118 |
|
---|
[3f8be484] | 119 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 120 | href="../common/binutils.xml"
|
---|
| 121 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
| 122 |
|
---|
| 123 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 124 | href="../common/binutils.xml"
|
---|
| 125 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 126 |
|
---|
| 127 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 128 | href="../common/binutils.xml"
|
---|
| 129 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
| 130 |
|
---|
| 131 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 132 | href="../common/binutils.xml"
|
---|
| 133 | xpointer="xpointer(//*[@os='u'])"/>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 138 | href="../common/binutils.xml"
|
---|
| 139 | xpointer="xpointer(id('contents-binutils'))"/>
|
---|
| 140 |
|
---|
| 141 | </sect1>
|
---|