diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-10 17:20:47 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2003-05-10 17:20:47 +0000 |
commit | 585ce086da5af7b8f3e33ae93c6b0aa128b51555 (patch) | |
tree | 183f906671aedd054bd6da41761858797117b21c /chapter06 | |
parent | 243d49acd65f59052effd8ccb15800e9232ac008 (diff) |
made adjusting specs file architecture independant
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2548 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06')
-rw-r--r-- | chapter06/adjustingtoolchain.xml | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/chapter06/adjustingtoolchain.xml b/chapter06/adjustingtoolchain.xml index 941b79bf5..78de9e897 100644 --- a/chapter06/adjustingtoolchain.xml +++ b/chapter06/adjustingtoolchain.xml @@ -4,11 +4,13 @@ <para><screen><userinput>cd binutils-build make -C ld INSTALL=/stage1/bin/install install-data-local -SPECFILE=/stage1/lib/gcc-lib/i686-pc-linux-gnu/*/specs && -cp ${SPECFILE} ./XX && -sed 's@/stage1/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' ./XX > ${SPECFILE} && -unset SPECFILE && -rm -f ./XX</userinput></screen></para> +SPECFILE=/stage1/lib/gcc-lib/*/*/specs +sed -e 's@/lib/ld.so.1@/stage1/lib/ld.so.1@g' \ + -e +'s@/lib/ld-linux.so.2@/stage1/lib/ld-linux.so.2@g' \ + $SPECFILE > XX +mv XX $SPECFILE +unset SPECFILE</userinput></screen></para> </sect1> |