aboutsummaryrefslogtreecommitdiffstats
path: root/chapter5/glibc.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 02:01:33 +0000
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-19 02:01:33 +0000
commitca7ec24a78f9bd8824da23be1c24a98a3c764f5f (patch)
treef8b56862b35c0765024a081f3814043d6b172453 /chapter5/glibc.sh
parent13f2c64995621d3180b468c4d525eff1eb8c9993 (diff)
Make adjustments for Odroid N2+ aarch64 build.
Diffstat (limited to 'chapter5/glibc.sh')
-rw-r--r--chapter5/glibc.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/chapter5/glibc.sh b/chapter5/glibc.sh
index edab0d3..df39bc9 100644
--- a/chapter5/glibc.sh
+++ b/chapter5/glibc.sh
@@ -1,4 +1,5 @@
#!/bin/bash
+set -e
case $(uname -m) in
i?86) ln -sfv ld-linux.so.2 "${LFS}"/lib/ld-lsb.so.3
@@ -6,6 +7,9 @@ case $(uname -m) in
x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 "${LFS}"/lib64
ln -sfv ../lib/ld-linux-x86-64.so.2 "${LFS}"/lib64/ld-lsb-x86-64.so.3
;;
+ aarch64) ln -sfv ../lib/ld-linux-aarch64.so.1 "${LFS}"/lib64
+ ln -sfv ../lib/ld-linux-aarch64.so.1 "${LFS}"/lib64/ld-lsb-aarch64.so.3
+ ;;
esac
patch -Np1 -i ../glibc-"${VERSION}"-fhs-1.patch &&