diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml index fdb7e3195..bf66d0a5f 100644 --- a/chapter06/glibc-exp.xml +++ b/chapter06/glibc-exp.xml @@ -33,17 +33,13 @@ we install with Glibc: linuxthreads --libexecdir=/usr/bin: This will cause the pt_chown program to be installed in the /usr/bin directory. -sed 's/cross-compiling = yes/cross-compiling = no/' -config.make.backup > config.make: This time, sed searches -through config.make.backup and replaces all occurences -of cross-compiling = yes with -cross-compiling = no. We do this because we are -only building for our own system. Cross-compiling is used, for instance, -to build a package for an Apple Power PC on an Intel system. The reason -Glibc thinks we're cross-compiling is that it can't compile a test program -to determine this, so it automatically defaults to a cross-compiler. -Compiling the test program failes because Glibc hasn't been installed -yet. +echo "cross-compiling = no" > configparms: +We do this because we are only building for our own system. Cross-compiling +is used, for instance, to build a package for an Apple Power PC on an +Intel system. The reason Glibc thinks we're cross-compiling is that it +can't compile a test program to determine this, so it automatically defaults +to a cross-compiler. Compiling the test program failes because Glibc hasn't +been installed yet. exec /bin/bash:This command will start a new bash shell which will replace the current shell. This is diff --git a/chapter06/glibc-inst.xml b/chapter06/glibc-inst.xml index fa01b0969..0e54cb85b 100644 --- a/chapter06/glibc-inst.xml +++ b/chapter06/glibc-inst.xml @@ -29,9 +29,7 @@ mkdir ../glibc-build && cd ../glibc-build && ../glibc-&glibc-version;/configure --prefix=/usr \    --enable-add-ons --libexecdir=/usr/bin && -cp config.make config.make.backup && -sed 's/cross-compiling = yes/cross-compiling = no/' \ -   config.make.backup > config.make && +echo "cross-compiling = no" > configparms && make && make install && make localedata/install-locales &&