mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Use -print-file-name=specs instead of the undocumented --print-file-name switch for GCC's specs file edit
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6711 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
d3583ed55b
commit
941429e2c5
@ -114,6 +114,10 @@ First a summary, then a detailed log.</para>
|
||||
</itemizedlist>
|
||||
</listitem>
|
||||
|
||||
<listitem><para>August 18th, 2005 [matt]: Refrain from using the undocumented
|
||||
--print-file switch for GCC's spec file edit. Use -print-file-name=specs
|
||||
instead (Greg Schafer).</para></listitem>
|
||||
|
||||
<listitem><para>August 18th, 2005 [ken]: Add a patch to sanitise bzgrep's
|
||||
handling of filenames.</para></listitem>
|
||||
|
||||
|
@ -36,7 +36,7 @@ to the new dynamic linker. A simple sed script will accomplish this:</para>
|
||||
|
||||
<!-- Ampersands are needed to allow copy and paste -->
|
||||
|
||||
<screen><userinput>SPECFILE=`gcc --print-file specs` &&
|
||||
<screen><userinput>SPECFILE=`gcc -print-file-name=specs` &&
|
||||
sed 's@ /lib/ld-linux.so.2@ /tools/lib/ld-linux.so.2@g' \
|
||||
$SPECFILE > tempspecfile &&
|
||||
mv -f tempspecfile $SPECFILE &&
|
||||
|
@ -55,7 +55,7 @@ dynamic linker. A <command>perl</command> command accomplishes this:</para>
|
||||
|
||||
<screen><userinput>perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \
|
||||
-e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' \
|
||||
`gcc --print-file specs`</userinput></screen>
|
||||
`gcc -print-file-name=specs`</userinput></screen>
|
||||
|
||||
<para>It is a good idea to visually inspect the specs file to verify the intended
|
||||
change was actually made.</para>
|
||||
|
Loading…
Reference in New Issue
Block a user