diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index a80c0eb96..a0ab63438 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -155,7 +155,7 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"
Install the package and remove an unneeded directory:
make install
-rm -rf /usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/include-fixed/bits/
+rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/9.1.0/include-fixed/bits/
Create a symlink required by the FHS