aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/binutils-pass1-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter05/binutils-pass1-inst.xml')
-rw-r--r--chapter05/binutils-pass1-inst.xml24
1 files changed, 20 insertions, 4 deletions
diff --git a/chapter05/binutils-pass1-inst.xml b/chapter05/binutils-pass1-inst.xml
index 32d8e0008..e10415645 100644
--- a/chapter05/binutils-pass1-inst.xml
+++ b/chapter05/binutils-pass1-inst.xml
@@ -29,7 +29,7 @@ cd ../binutils-build</userinput></screen></para>
<para><screen><userinput>../binutils-&binutils-version;/configure \
&nbsp;&nbsp;&nbsp;&nbsp;--prefix=/tools --disable-nls</userinput></screen></para>
-<para>The meaning of the configure switches:</para>
+<para>The meaning of the configure options:</para>
<itemizedlist>
<listitem><para><userinput>--prefix=/tools</userinput>: This tells the
@@ -49,9 +49,11 @@ make LDFLAGS="-all-static"</userinput></screen></para>
<para>The meaning of the make option:</para>
<itemizedlist>
-<listitem><para><userinput>LDFLAGS="-all-static"</userinput>: This tells
-the linker that all the Binutils programs should be linked
-statically.</para></listitem>
+<listitem><para><userinput>LDFLAGS="-all-static"</userinput>: This tells the
+linker that all the Binutils programs should be linked statically. However,
+strictly speaking, <userinput>"-all-static"</userinput> is first passed on to
+the <emphasis>libtool</emphasis> program which then passes
+<userinput>"-static"</userinput> on to the linker.</para></listitem>
</itemizedlist>
<para>And install the package:</para>
@@ -63,6 +65,20 @@ statically.</para></listitem>
<para><screen><userinput>make -C ld clean
make -C ld LIB_PATH=/tools/lib</userinput></screen></para>
+<para>The meaning of the make options:</para>
+
+<itemizedlist>
+<listitem><para><userinput>-C ld clean</userinput>: This tells the make program
+to remove all the compiled files only in the <filename>ld</filename>
+subdirectory.</para></listitem>
+
+<listitem><para><userinput>-C ld LIB_PATH=/tools/lib</userinput>: This option
+rebuilds everything in the <filename>ld</filename> subdirectory. Specifying the
+LIB_PATH makefile variable on the command line allows us to override the default
+value and have it point to our temporary tools location. This preparation will
+be utilised later on in the chapter.</para></listitem>
+</itemizedlist>
+
<caution><para>Do not yet remove the Binutils build and source
directories. You will need them again in their current state a bit further on
in this chapter.</para></caution>