aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZack Winkles <winkie@linuxfromscratch.org>2004-06-07 18:57:42 +0000
committerZack Winkles <winkie@linuxfromscratch.org>2004-06-07 18:57:42 +0000
commit9109cd46dd8cbe0798713282e4908aeb98910a41 (patch)
treeaf4d7772f160b90d342463f27387e314125d9457
parent71bbe67154812a63d55689259d1467b853a25b48 (diff)
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
-rw-r--r--chapter01/changelog.xml4
-rw-r--r--chapter05/adjusting.xml2
-rw-r--r--chapter06/readjusting.xml2
3 files changed, 6 insertions, 2 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml
index 32a41e1db..74278241e 100644
--- a/chapter01/changelog.xml
+++ b/chapter01/changelog.xml
@@ -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>
diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml
index ea14302fa..ae676717e 100644
--- a/chapter05/adjusting.xml
+++ b/chapter05/adjusting.xml
@@ -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;
diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml
index e4c8c46a6..c8c2f4bbd 100644
--- a/chapter06/readjusting.xml
+++ b/chapter06/readjusting.xml
@@ -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;