From d5f8a8fb450367a3e8e1724f81b50576290fc248 Mon Sep 17 00:00:00 2001 From: Greg Schafer Date: Thu, 16 Oct 2003 06:54:55 +0000 Subject: Fine tune toolchain adjustment commands. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2994 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/adjustingtoolchain.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'chapter06') diff --git a/chapter06/adjustingtoolchain.xml b/chapter06/adjustingtoolchain.xml index c20a67be8..f07562f9c 100644 --- a/chapter06/adjustingtoolchain.xml +++ b/chapter06/adjustingtoolchain.xml @@ -40,10 +40,12 @@ problem here. The above command takes care of this also. to the new dynamic linker. Just like earlier on, we use a sed to accomplish this: -SPECFILE=/tools/lib/gcc-lib/*/*/specs + + +SPECFILE=/tools/lib/gcc-lib/*/*/specs && sed -e 's@/tools/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' \ -    $SPECFILE > newspecfile -mv newspecfile $SPECFILE +    $SPECFILE > newspecfile && +mv -f newspecfile $SPECFILE && unset SPECFILE Again, cutting and pasting the above is recommended. And just like -- cgit v1.2.3-54-g00ecf