Changeset 675606b for chapter05/binutils-pass1.xml
- Timestamp:
- 06/16/2020 11:56:28 AM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9a05e45
- Parents:
- 560065f (diff), 1cd5961 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/binutils-pass1.xml
r560065f r675606b 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> … … 64 64 the configuration, up to and including the first install. To achieve 65 65 this easily, wrap the commands in a <command>time</command> 66 command like this: <userinput>time { ./configure ... && ...66 command like this: <userinput>time { ./configure ... && make 67 67 && make install; }</userinput>.</para> 68 68 </note> 69 69 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 70 <para>Now prepare Binutils for compilation:</para> 74 71 75 <screen><userinput remap="configure">../configure --prefix= /tools\72 <screen><userinput remap="configure">../configure --prefix=$LFS/tools \ 76 73 --with-sysroot=$LFS \ 77 --with-lib-path=/tools/lib \78 74 --target=$LFS_TGT \ 79 75 --disable-nls \ … … 84 80 85 81 <varlistentry> 86 <term><parameter>--prefix= /tools</parameter></term>82 <term><parameter>--prefix=$LFS/tools</parameter></term> 87 83 <listitem> 88 84 <para>This tells the configure script to prepare to install the 89 Binutils programs in the <filename class="directory">/tools</filename>90 directory.</para>85 binutils programs in the <filename 86 class="directory">$LFS/tools</filename> directory.</para> 91 87 </listitem> 92 88 </varlistentry> … … 101 97 102 98 <varlistentry> 103 <term><parameter>--with-lib-path=/tools/lib</parameter></term>104 <listitem>105 <para>This specifies which library path the linker should be106 configured to use.</para>107 </listitem>108 </varlistentry>109 110 <varlistentry>111 99 <term><envar>--target=$LFS_TGT</envar></term> 112 100 <listitem> … … 114 102 variable is slightly different than the value returned by the 115 103 <command>config.guess</command> script, this switch will tell the 116 <command>configure</command> script to adjust Binutil's build system104 <command>configure</command> script to adjust binutil's build system 117 105 for building a cross linker. </para> 118 106 </listitem> … … 141 129 <screen><userinput remap="make">make</userinput></screen> 142 130 143 <para>Compilation is now complete. Ordinarily we would now run the144 test suite, but at this early stage the test suite framework (Tcl,145 Expect, and DejaGNU) is not yet in place. The benefits of running the146 tests at this point are minimal since the programs from this147 first pass will soon be replaced by those from the second.</para>148 149 <para>If building on x86_64, create a symlink to ensure the sanity of150 the toolchain:</para>151 152 <screen><userinput remap="install">case $(uname -m) in153 x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;154 esac</userinput></screen>155 156 131 <para>Install the package:</para> 157 132
Note:
See TracChangeset
for help on using the changeset viewer.