Warnings and important notices about a command that appear after instructions to run it are evil.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7953 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Jeremy Huntwork 2007-03-02 23:23:14 +00:00
parent 40ffa161a9
commit 19f8a620a8
2 changed files with 20 additions and 10 deletions

View File

@ -36,6 +36,16 @@
</listitem> </listitem>
--> -->
<listitem>
<para>2007-03-1</para>
<itemizedlist>
<listitem>
<para>[jhuntwork] - Minor grammatical changes. Move some warnings and
notices to appear before affected commands.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2007-02-25</para> <para>2007-02-25</para>
<itemizedlist> <itemizedlist>

View File

@ -32,25 +32,25 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
<para>The next task is to point GCC to the new dynamic linker. This is done by <para>The next task is to point GCC to the new dynamic linker. This is done by
dumping GCC's <quote>specs</quote> file to a location where GCC will look for it dumping GCC's <quote>specs</quote> file to a location where GCC will look for it
by default. A simple <command>sed</command> substitution then alters the by default. A simple <command>sed</command> substitution then alters the
dynamic linker that GCC will use:</para> dynamic linker that GCC will use.</para>
<!-- Ampersands are needed to allow copy and paste --> <para>For the sake of accuracy, it is recommended to use a copy-and-paste
<screen><userinput>gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' \ method when issuing the following command. Be sure to visually inspect the
> `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen> specs file and verify that all occurrences of <quote>/lib/ld-linux.so.2</quote>
have been replaced with <quote>/tools/lib/ld-linux.so.2</quote>.</para>
<para>It is recommended that the above command be copy-and-pasted in order to
ensure accuracy. Be sure to visually inspect the specs file in order to
verify that all occurrences of <quote>/lib/ld-linux.so.2</quote> have been
replaced with <quote>/tools/lib/ld-linux.so.2</quote>.</para>
<important> <important>
<para>If working on a platform where the name of the dynamic linker is <para>If working on a platform where the name of the dynamic linker is
something other than <filename class="libraryfile">ld-linux.so.2</filename>, something other than <filename class="libraryfile">ld-linux.so.2</filename>,
replace <quote>ld-linux.so.2</quote> with the name of the platform's replace <quote>ld-linux.so.2</quote> with the name of the platform's
dynamic linker in the above commands. Refer back to <xref dynamic linker in the following commands. Refer back to <xref
linkend="ch-tools-toolchaintechnotes" role=","/> if necessary.</para> linkend="ch-tools-toolchaintechnotes" role=","/> if necessary.</para>
</important> </important>
<!-- Ampersands are needed to allow copy and paste -->
<screen><userinput>gcc -dumpspecs | sed 's@^/lib/ld-linux.so.2@/tools&amp;@g' \
> `dirname $(gcc -print-libgcc-file-name)`/specs</userinput></screen>
<para>During the build process, GCC runs a script <para>During the build process, GCC runs a script
(<command>fixincludes</command>) that scans the system for header files (<command>fixincludes</command>) that scans the system for header files
that may need to be fixed (they might contain syntax errors, for example), that may need to be fixed (they might contain syntax errors, for example),