aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gcc.xml')
-rw-r--r--chapter06/gcc.xml16
1 files changed, 12 insertions, 4 deletions
diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml
index fe997becf..6a75fb287 100644
--- a/chapter06/gcc.xml
+++ b/chapter06/gcc.xml
@@ -45,6 +45,16 @@
<screen><userinput remap="pre">patch -Np1 -i ../gcc-6.1.0-asan-1.patch</userinput></screen>
-->
+ <para>If building on x86_64, change the default direcotory name for 64-bit
+ libraries to <quote>lib</quote>:</para>
+
+<screen><userinput remap="pre">case $(uname -m) in
+ x86_64)
+ sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
+ ;;
+esac</userinput></screen>
+
<para>The GCC documentation recommends building GCC in a dedicated build directory:</para>
<screen><userinput remap="pre">mkdir -v build
@@ -175,10 +185,8 @@ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
<para>Depending on your machine architecture, the above may differ slightly,
the difference usually being the name of the directory
- after <filename class="directory">/usr/lib/gcc</filename>. If your machine is
- a 64-bit system, you may also see a directory named <filename class="directory">lib64</filename>
- towards the end of the string. The important thing to
- look for here is that <command>gcc</command> has found all three
+ after <filename class="directory">/usr/lib/gcc</filename>. The important
+ thing to look for here is that <command>gcc</command> has found all three
<filename>crt*.o</filename> files under the
<filename class="directory">/usr/lib</filename> directory.</para>