Use "gcc --print-file specs" to determine the location of the specs file

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3761 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Zack Winkles 2004-06-07 18:57:42 +00:00
parent 71bbe67154
commit 9109cd46dd
3 changed files with 6 additions and 2 deletions

View File

@ -104,6 +104,10 @@ first a summary, then a detailed log.</para>
</itemizedlist>
</listitem>
<listitem><para>June 7, 2004 [winkie]: Use the
<quote>gcc --print-file specs</quote> command to determine the location of the
<quote>specs</quote> file.</para></listitem>
<listitem><para>June 7, 2004 [winkie]: Updated patch names to match those used
by the patches project.</para></listitem>

View File

@ -39,7 +39,7 @@ to the new dynamic linker. A simple sed script will accomplish this:</para>
<!-- Ampersands are needed to allow cut and paste -->
<screen><userinput>SPECFILE=/tools/lib/gcc/*/*/specs &amp;&amp;
<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
sed -e 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
$SPECFILE &gt; tempspecfile &amp;&amp;
mv -f tempspecfile $SPECFILE &amp;&amp;

View File

@ -52,7 +52,7 @@ this:</para>
<!-- Ampersands are needed to allow cut and paste -->
<screen><userinput>SPECFILE=/tools/lib/gcc/*/*/specs &amp;&amp;
<screen><userinput>SPECFILE=`gcc --print-file specs` &amp;&amp;
sed -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g' \
$SPECFILE &gt; newspecfile &amp;&amp;
mv -f newspecfile $SPECFILE &amp;&amp;