aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gcc-pass2.xml
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 /chapter06/gcc-pass2.xml
parent4d8854a5e3d01e6e921e6ea883be4b16aa0b220c (diff)
arm64: adapt GCC lib64 -> lib quirk for aarch64
Diffstat (limited to 'chapter06/gcc-pass2.xml')
-rw-r--r--chapter06/gcc-pass2.xml13
1 files changed, 5 insertions, 8 deletions
diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml
index 70295bdaa..169fc4595 100644
--- a/chapter06/gcc-pass2.xml
+++ b/chapter06/gcc-pass2.xml
@@ -58,14 +58,11 @@ mv -v gmp-&gmp-version; gmp
tar -xf ../mpc-&mpc-version;.tar.gz
mv -v mpc-&mpc-version; mpc</userinput></screen>
- <para>If building on x86_64, change 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>
+ <para>On ARM64 hosts, set the default directory name for
+ 64-bit libraries to <quote>lib</quote>:</para>
+
+<screen><userinput remap="pre">sed -e '/lp64=/s/lib64/lib/' \
+ -i.orig gcc/config/aarch64/t-aarch64-linux</userinput></screen>
<para>Override the building rule of libgcc and libstdc++ headers, to
allow building these libraries with POSIX threads support:</para>