From 941429e2c5d50699cce98d329ef3da7d4be461a4 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Thu, 18 Aug 2005 20:18:30 +0000 Subject: 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 --- chapter01/changelog.xml | 4 ++++ chapter05/adjusting.xml | 2 +- chapter06/readjusting.xml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 43af25426..0bd00e00d 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -114,6 +114,10 @@ First a summary, then a detailed log. +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). + August 18th, 2005 [ken]: Add a patch to sanitise bzgrep's handling of filenames. diff --git a/chapter05/adjusting.xml b/chapter05/adjusting.xml index 3558b1098..3f5ff2958 100644 --- a/chapter05/adjusting.xml +++ b/chapter05/adjusting.xml @@ -36,7 +36,7 @@ to the new dynamic linker. A simple sed script will accomplish this: -SPECFILE=`gcc --print-file specs` && +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 && diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index cd7fdfb6b..760f35cb0 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -55,7 +55,7 @@ dynamic linker. A perl command accomplishes this: 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` + `gcc -print-file-name=specs` It is a good idea to visually inspect the specs file to verify the intended change was actually made. -- cgit v1.2.3-54-g00ecf