aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/binutils-inst.xml
diff options
context:
space:
mode:
authorAlex Gronenwoud <alex@linuxfromscratch.org>2003-08-28 21:19:09 +0000
committerAlex Gronenwoud <alex@linuxfromscratch.org>2003-08-28 21:19:09 +0000
commitae581daa002f6651c564c2cfccb159ccdb6686e0 (patch)
tree108f8dcebdfda552794d8fadfc1f71ec30962827 /chapter06/binutils-inst.xml
parent871df54793b18fd5d26bb69a44ebf7950f31d556 (diff)
Updating chapter 6 Binutils and Gcc installation text.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2690 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/binutils-inst.xml')
-rw-r--r--chapter06/binutils-inst.xml27
1 files changed, 16 insertions, 11 deletions
diff --git a/chapter06/binutils-inst.xml b/chapter06/binutils-inst.xml
index d080a7a5d..1d2aafd16 100644
--- a/chapter06/binutils-inst.xml
+++ b/chapter06/binutils-inst.xml
@@ -6,7 +6,7 @@
default optimization flags (including the -march and -mcpu options).
Therefore, if you have defined any environment variables that override
default optimizations, such as CFLAGS and CXXFLAGS, we recommend unsetting
-or modifying them when building binutils.</para>
+or modifying them when building Binutils.</para>
<para>It is recommended by the Binutils installation documentation to build
Binutils outside of the source directory:</para>
@@ -14,29 +14,34 @@ Binutils outside of the source directory:</para>
<para><screen><userinput>mkdir ../binutils-build
cd ../binutils-build</userinput></screen></para>
-<para>Next, prepare Binutils to be compiled:</para>
+<para>Now prepare Binutils for compilation:</para>
<para><screen><userinput>../binutils-&binutils-version;/configure \
&nbsp;&nbsp;&nbsp;&nbsp;--prefix=/usr --enable-shared</userinput></screen></para>
-<para>Continue with compiling the package:</para>
+<para>Compile the package:</para>
<para><screen><userinput>make tooldir=/usr</userinput></screen></para>
-<para><screen><userinput>make check</userinput></screen></para>
-
<para>Normally, the <emphasis>tooldir</emphasis> (the directory where the
-executables end up) is set to $(exec_prefix)/$(target_alias) which expands
-into, for example, /usr/i686-pc-linux-gnu. Since we only build for our
-own system, we don't need this target specific directory in /usr. That
-setup would be used if the system was used to cross-compile (for example
-compiling a package on the Intel machine that generates code that can be
-executed on Apple PowerPC machines).</para>
+executables end up) is set to $(exec_prefix)/$(target_alias), which expands
+into, for example, <filename>/usr/i686-pc-linux-gnu</filename>. Since we only
+build for our own system, we don't need this target specific directory in
+<filename>/usr</filename>. That setup would be used if the system was used to
+cross-compile (for example compiling a package on an Intel machine that
+generates code that can be executed on PowerPC machines).</para>
+
+<para>Check the results:</para>
+
+<para><screen><userinput>make check</userinput></screen></para>
<para>Install the package:</para>
<para><screen><userinput>make tooldir=/usr install</userinput></screen></para>
+<para>And remove a library that normally is not meant to be installed on its
+own:</para>
+
<para><screen><userinput>rm /usr/lib/libiberty.a</userinput></screen></para>
</sect2>