From 2e02c35ad71fcbd0b932edf49eb9a8d5e49179b1 Mon Sep 17 00:00:00 2001 From: Matthew Burgess Date: Fri, 9 Sep 2005 20:34:44 +0000 Subject: Upgrade to gcc-4.0.1 (merge of gcc4 branch) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@6819 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/readjusting.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'chapter06/readjusting.xml') diff --git a/chapter06/readjusting.xml b/chapter06/readjusting.xml index 760f35cb0..7c11d9333 100644 --- a/chapter06/readjusting.xml +++ b/chapter06/readjusting.xml @@ -51,11 +51,12 @@ problem. The above command takes care of this issue. Remove the Binutils source and build directories now. Next, amend the GCC specs file so that it points to the new -dynamic linker. A perl command accomplishes this: +dynamic linker. A sed 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-name=specs` +SPECFILE=`dirname $(gcc -print-libgcc-file-name)`/specs && +gcc -dumpspecs > $SPECFILE && +sed -i 's@^/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE && +unset SPECFILE 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