diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 32ace456a..d060ade5f 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -62,15 +62,13 @@ mv -v gmp-&gmp-version; gmp
tar -xf ../mpc-&mpc-version;.tar.gz
mv -v mpc-&mpc-version; mpc
- On x86_64 hosts, set the default directory name for
- 64-bit libraries to lib
:
+ For x86_64 target, set the default directory name for
+ 64-bit libraries to lib
. The command is unnecessary,
+ but harmless for 32-bit x86. If you are building for another target,
+ you may need to adjust the command for your target.
-case $(uname -m) in
- x86_64)
- sed -e '/m64=/s/lib64/lib/' \
- -i.orig gcc/config/i386/t-linux64
- ;;
-esac
+sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
The GCC documentation recommends building GCC
in a dedicated build directory:
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index bf3007848..abe055e3f 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -54,14 +54,14 @@ mv -v gmp-&gmp-version; gmp
tar -xf ../mpc-&mpc-version;.tar.gz
mv -v mpc-&mpc-version; mpc
- If building on x86_64, change the default directory name for 64-bit
- libraries to lib
:
+ For x86_64 target, set the default directory name for
+ 64-bit libraries to lib
. The command is unnecessary,
+ but harmless for 32-bit x86. If you are building for another target,
+ you may need to adjust the command for your target.
+
+sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
-case $(uname -m) in
- x86_64)
- sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
- ;;
-esac