Moved another important notice to precede the concerned command.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7955 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Jeremy Huntwork 2007-03-02 23:52:06 +00:00
parent 09ec1f4110
commit 54592a1176

View File

@ -34,7 +34,15 @@ ln -sv /tools/bin/ld /tools/$(gcc -dumpmachine)/bin/ld</userinput></screen>
<para>Next, amend the GCC specs file so that it points to the new <para>Next, amend the GCC specs file so that it points to the new
dynamic linker, and so that GCC knows where to find its start files. dynamic linker, and so that GCC knows where to find its start files.
A <command>perl</command> command accomplishes this:</para> A <command>perl</command> command accomplishes this.</para>
<important>
<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>,
substitute <quote>ld-linux.so.2</quote> with the name of the platform's
dynamic linker in the following commands. Refer to <xref
linkend="ch-tools-toolchaintechnotes" role=","/> if necessary.</para>
</important>
<screen><userinput>gcc -dumpspecs | \ <screen><userinput>gcc -dumpspecs | \
perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \ perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
@ -44,14 +52,6 @@ perl -p -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g;' \
<para>It is a good idea to visually inspect the specs file to verify the <para>It is a good idea to visually inspect the specs file to verify the
intended change was actually made.</para> intended change was actually made.</para>
<important>
<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>,
substitute <quote>ld-linux.so.2</quote> with the name of the platform's
dynamic linker in the above commands. Refer to <xref
linkend="ch-tools-toolchaintechnotes" role=","/> if necessary.</para>
</important>
<para>It is imperative at this point to ensure that the basic <para>It is imperative at this point to ensure that the basic
functions (compiling and linking) of the adjusted toolchain are working functions (compiling and linking) of the adjusted toolchain are working
as expected. To do this, perform the following sanity checks:</para> as expected. To do this, perform the following sanity checks:</para>