diff options
Diffstat (limited to 'chapter06/glibc-exp.xml')
-rw-r--r-- | chapter06/glibc-exp.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml index 73aa27bad..822d8d83d 100644 --- a/chapter06/glibc-exp.xml +++ b/chapter06/glibc-exp.xml @@ -16,7 +16,7 @@ that it can't read the file, so we simply create an empty file (the empty file will have Glibc default to using /lib and /usr/lib which is fine right now).</para> -<para><userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/ +<para><userinput>sed 's|$(PERL)|/usr/bin/perl|' ../glibc-2.2.3/malloc/Makefile > tmp~:</userinput> This sed command searches through <filename>../glibc-2.2.3/malloc/Makefile</filename> and converts all occurances of <filename>$(PERL)</filename> to @@ -31,7 +31,7 @@ Glibc.</para> when using sed, we can't write straight back to this file so we need to use a temporary file in between.</para> -<para><userinput>sed "s/root/0" ../glibc-2.2.3/login/Makefile > +<para><userinput>sed 's/root/0' ../glibc-2.2.3/login/Makefile > tmp~:</userinput> This sed command replaces all occurances of <filename>root</filename> in <filename>../glibc-2.2.3/login/Makefile</filename> with 0. This is @@ -46,7 +46,7 @@ edited Makefile and then copying it back over the original.</para> <para><userinput>--enable-add-ons:</userinput> This enables the add-on that we install with Glibc: linuxthreads</para> -<para><userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/ +<para><userinput>sed 's/cross-compiling = yes/cross-compiling = no/' config.make > config.make~:</userinput> This time, we're replacing <filename>cross-compiling = yes</filename> with <filename>cross-compiling = no</filename>. We do this because we are |