diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index ed8acb1f4..f559f5aa3 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -65,7 +65,8 @@ mv -v mpc-&mpc-version; mpc
Set the default directory name for
64-bit libraries to lib
:
-sed 's/lib64/lib/' -i.orig gcc/config/loongarch/{t-linux,linux.h}
+sed -e 's/lib64/lib/' \
+ -i.orig gcc/config/loongarch/{t-linux,linux.h}
The GCC documentation recommends building GCC
in a dedicated build directory:
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index 05173661e..0ed477c58 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -60,7 +60,8 @@ mv -v mpc-&mpc-version; mpc
Set the default directory name for
64-bit libraries to lib
:
-sed 's/lib64/lib/' -i.orig gcc/config/loongarch/{t-linux,linux.h}
+sed -e 's/lib64/lib/' \
+ -i.orig gcc/config/loongarch/{t-linux,linux.h}
Override the building rule of libgcc and libstdc++ headers, to
allow building these libraries with POSIX threads support:
diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml
index 167495a50..10c80b277 100644
--- a/chapter08/gcc.xml
+++ b/chapter08/gcc.xml
@@ -57,7 +57,8 @@
Set the default directory name for
64-bit libraries to lib
:
-sed 's/lib64/lib/' -i.orig gcc/config/loongarch/{t-linux,linux.h}
+sed -e 's/lib64/lib/' \
+ -i.orig gcc/config/loongarch/{t-linux,linux.h}
The GCC documentation recommends building GCC in a dedicated build directory: