Changeset 37e35d2 for chapter05/binutils-pass1.xml
- Timestamp:
- 06/29/2020 07:55:01 AM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- c4804e8
- Parents:
- d4fdde6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1.xml
rd4fdde6 r37e35d2 26 26 27 27 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 28 href="../chapter0 6/binutils.xml"28 href="../chapter08/binutils.xml" 29 29 xpointer="xpointer(/sect1/sect2[1]/para[1])"/> 30 30 … … 34 34 35 35 <seglistitem> 36 <seg>&binutils- ch5p1-sbu;</seg>37 <seg>&binutils- ch5p1-du;</seg>36 <seg>&binutils-tmpp1-sbu;</seg> 37 <seg>&binutils-tmpp1-du;</seg> 38 38 </seglistitem> 39 39 </segmentedlist> … … 44 44 <title>Installation of Cross Binutils</title> 45 45 46 <note><para>Go back and re-read the notes in the previous section. 47 Understanding the notes labeled important will save you a lot 46 <note><para>Go back and re-read the notes in the section titled <xref 47 linkend="ch-tools-generalinstructions"/>. 48 Understanding the notes labeled important can save you a lot 48 49 of problems later.</para></note> 49 50 … … 64 65 the configuration, up to and including the first install. To achieve 65 66 this easily, wrap the commands in a <command>time</command> 66 command like this: <userinput>time { ./configure ... && ...67 command like this: <userinput>time { ./configure ... && make 67 68 && make install; }</userinput>.</para> 68 69 </note> 69 70 70 <note><para>The approximate build SBU values and required disk space71 in Chapter 5 does not include test suite data.</para></note>72 73 71 <para>Now prepare Binutils for compilation:</para> 74 72 75 <screen arch="default"><userinput remap="configure">../configure --prefix= /tools\73 <screen arch="default"><userinput remap="configure">../configure --prefix=$LFS/tools \ 76 74 --with-sysroot=$LFS \ 77 --with-lib-path=/tools/lib \78 75 --target=$LFS_TGT \ 79 76 --disable-nls \ 80 77 --disable-werror</userinput></screen> 81 82 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">lpath=/tools/lib</userinput> 83 <userinput remap="configure" arch="ml_32,ml_all">lpath="$lpath:/tools/lib32"</userinput> 84 <userinput remap="configure" arch="ml_x32,ml_all">lpath="$lpath:/tools/libx32"</userinput> 85 <userinput remap="configure">../configure --prefix=/tools \ 86 --with-sysroot=$LFS \ 87 --with-lib-path=$lpath \ 88 --target=$LFS_TGT \ 89 --disable-nls \ 90 --disable-werror \ 91 --enable-64-bit-bfd \ 78 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="configure">../configure --prefix=$LFS/tools \ 79 --with-sysroot=$LFS \ 80 --target=$LFS_TGT \ 81 --disable-nls \ 82 --disable-werror \ 92 83 --enable-multilib</userinput></screen> 93 84 … … 96 87 97 88 <varlistentry> 98 <term><parameter>--prefix= /tools</parameter></term>89 <term><parameter>--prefix=$LFS/tools</parameter></term> 99 90 <listitem> 100 91 <para>This tells the configure script to prepare to install the 101 Binutils programs in the <filename class="directory">/tools</filename>102 directory.</para>92 binutils programs in the <filename 93 class="directory">$LFS/tools</filename> directory.</para> 103 94 </listitem> 104 95 </varlistentry> … … 113 104 114 105 <varlistentry> 115 <term><parameter>--with-lib-path=/tools/lib</parameter></term>116 <listitem>117 <para>This specifies which library path the linker should be118 configured to use.</para>119 </listitem>120 </varlistentry>121 122 <varlistentry>123 106 <term><envar>--target=$LFS_TGT</envar></term> 124 107 <listitem> … … 126 109 variable is slightly different than the value returned by the 127 110 <command>config.guess</command> script, this switch will tell the 128 <command>configure</command> script to adjust Binutil's build system111 <command>configure</command> script to adjust binutil's build system 129 112 for building a cross linker. </para> 130 113 </listitem> … … 147 130 </varlistentry> 148 131 132 <varlistentry arch="ml_32,ml_x32,ml_all"> 133 <term><parameter>--enable-multilib</parameter></term> 134 <listitem> 135 <para>Enables multilib support.</para> 136 </listitem> 137 </varlistentry> 138 149 139 </variablelist> 150 140 … … 152 142 153 143 <screen><userinput remap="make">make</userinput></screen> 154 155 <para>Compilation is now complete. Ordinarily we would now run the156 test suite, but at this early stage the test suite framework (Tcl,157 Expect, and DejaGNU) is not yet in place. The benefits of running the158 tests at this point are minimal since the programs from this159 first pass will soon be replaced by those from the second.</para>160 161 <para arch="default">If building on x86_64, create a symlink to ensure the162 sanity of the toolchain:</para>163 164 <para arch="ml_32,ml_x32,ml_all">Create a symlink to ensure the sanity of165 the toolchain:</para>166 167 <screen arch="default"><userinput remap="install">case $(uname -m) in168 x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;169 esac</userinput></screen>170 171 <screen arch="ml_32,ml_x32,ml_all"><userinput remap="install">mkdir -v /tools/lib &&172 ln -sv lib /tools/lib64</userinput></screen>173 144 174 145 <para>Install the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.