aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-08-24 23:26:41 +0800
committerXi Ruoyao <xry111@xry111.site>2022-08-26 20:31:32 +0800
commit9334a3f2dc1092327c6395a2073ab2b1d9fb8f2b (patch)
tree5f54b311d5c952f3c1ad24139f0ea799b16be113 /chapter05
parent4d8854a5e3d01e6e921e6ea883be4b16aa0b220c (diff)
arm64: adapt GCC lib64 -> lib quirk for aarch64
Diffstat (limited to 'chapter05')
-rw-r--r--chapter05/gcc-pass1.xml10
1 files changed, 3 insertions, 7 deletions
diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml
index 34ad1b15e..e0b913b58 100644
--- a/chapter05/gcc-pass1.xml
+++ b/chapter05/gcc-pass1.xml
@@ -62,15 +62,11 @@ mv -v gmp-&gmp-version; gmp
tar -xf ../mpc-&mpc-version;.tar.gz
mv -v mpc-&mpc-version; mpc</userinput></screen>
- <para>On x86_64 hosts, set the default directory name for
+ <para>On ARM64 hosts, set the default directory 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>
+<screen><userinput remap="pre">sed -e '/lp64=/s/lib64/lib/' \
+ -i.orig gcc/config/aarch64/t-aarch64-linux</userinput></screen>
<para>The GCC documentation recommends building GCC
in a dedicated build directory:</para>