diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-16 11:56:28 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-16 11:56:28 +0000 |
commit | 675606bde2ba53946537b42a5aa576692a311621 (patch) | |
tree | af20c20ce3841c16b24d0b9903af6878a4a0f5a6 /chapter05/binutils-pass1.xml | |
parent | 560065f976e371779928dbf8b9428217f3f57331 (diff) | |
parent | 1cd59612d00603c9ce773ad821a15d20bc4fa0b7 (diff) |
Split Chapter 5 into three separate chapters.
Implement a new method of cross-building the LFS tool chain
and other tools to simplify the method of isolating the
new system from the original host. This will be the start of
LFS-10.0.
Move old trunk/BOOK to branches/old-trunk.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11946 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/binutils-pass1.xml')
-rw-r--r-- | chapter05/binutils-pass1.xml | 43 |
1 files changed, 9 insertions, 34 deletions
diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index b54941a23..914e119b8 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -25,7 +25,7 @@ <title/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" - href="../chapter06/binutils.xml" + href="../chapter08/binutils.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> @@ -33,8 +33,8 @@ <segtitle>&diskspace;</segtitle> <seglistitem> - <seg>&binutils-ch5p1-sbu;</seg> - <seg>&binutils-ch5p1-du;</seg> + <seg>&binutils-tmpp1-sbu;</seg> + <seg>&binutils-tmpp1-du;</seg> </seglistitem> </segmentedlist> @@ -63,18 +63,14 @@ cd build</userinput></screen> to be of any use, measure the time it takes to build this package from the configuration, up to and including the first install. To achieve this easily, wrap the commands in a <command>time</command> - command like this: <userinput>time { ./configure ... && ... + command like this: <userinput>time { ./configure ... && make && make install; }</userinput>.</para> </note> - <note><para>The approximate build SBU values and required disk space - in Chapter 5 does not include test suite data.</para></note> - <para>Now prepare Binutils for compilation:</para> -<screen><userinput remap="configure">../configure --prefix=/tools \ +<screen><userinput remap="configure">../configure --prefix=$LFS/tools \ --with-sysroot=$LFS \ - --with-lib-path=/tools/lib \ --target=$LFS_TGT \ --disable-nls \ --disable-werror</userinput></screen> @@ -83,11 +79,11 @@ cd build</userinput></screen> <title>The meaning of the configure options:</title> <varlistentry> - <term><parameter>--prefix=/tools</parameter></term> + <term><parameter>--prefix=$LFS/tools</parameter></term> <listitem> <para>This tells the configure script to prepare to install the - Binutils programs in the <filename class="directory">/tools</filename> - directory.</para> + binutils programs in the <filename + class="directory">$LFS/tools</filename> directory.</para> </listitem> </varlistentry> @@ -100,20 +96,12 @@ cd build</userinput></screen> </varlistentry> <varlistentry> - <term><parameter>--with-lib-path=/tools/lib</parameter></term> - <listitem> - <para>This specifies which library path the linker should be - configured to use.</para> - </listitem> - </varlistentry> - - <varlistentry> <term><envar>--target=$LFS_TGT</envar></term> <listitem> <para>Because the machine description in the <envar>LFS_TGT</envar> variable is slightly different than the value returned by the <command>config.guess</command> script, this switch will tell the - <command>configure</command> script to adjust Binutil's build system + <command>configure</command> script to adjust binutil's build system for building a cross linker. </para> </listitem> </varlistentry> @@ -140,19 +128,6 @@ cd build</userinput></screen> <screen><userinput remap="make">make</userinput></screen> - <para>Compilation is now complete. Ordinarily we would now run the - test suite, but at this early stage the test suite framework (Tcl, - Expect, and DejaGNU) is not yet in place. The benefits of running the - tests at this point are minimal since the programs from this - first pass will soon be replaced by those from the second.</para> - - <para>If building on x86_64, create a symlink to ensure the sanity of - the toolchain:</para> - -<screen><userinput remap="install">case $(uname -m) in - x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;; -esac</userinput></screen> - <para>Install the package:</para> <screen><userinput remap="install">make install</userinput></screen> |