aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index c1434e7e3..9ab97ea22 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -155,7 +155,13 @@ cd ../gcc-build</userinput></screen>
<screen><userinput remap="install">install -dm755 /usr/lib/bfd-plugins
pushd /usr/lib/bfd-plugins
-ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so
+
+if [ $(uname -m) == "i686" ]; then
+ ln -sfv ../../libexec/gcc/i686-pc-linux-gnu/&gcc-version;/liblto_plugin.so
+else
+ ln -sfv ../../libexec/gcc/x86_64-unknown-linux-gnu/&gcc-version;/liblto_plugin.so
+fi
+
popd</userinput></screen>
<para>Now that our final toolchain is in place, it is important to again ensure