diff options
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r-- | chapter06/gcc.xml | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index 9ab97ea22..73ea27b63 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -154,15 +154,7 @@ cd ../gcc-build</userinput></screen> Link Time Optimization (LTO):</para> <screen><userinput remap="install">install -dm755 /usr/lib/bfd-plugins -pushd /usr/lib/bfd-plugins - -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> +ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so</userinput></screen> <para>Now that our final toolchain is in place, it is important to again ensure that compiling and linking will work as expected. We do this by performing |