From 4d8854a5e3d01e6e921e6ea883be4b16aa0b220c Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 24 Aug 2022 22:49:40 +0800 Subject: arm64: don't create /lib64 The path to dynamic linker is /lib/ld-linux-aarch64.so.1, no hardcoded /lib64. It's much better than x86_64 or MIPS64 IMO. [As a LoongArch contributor & reviewer: we really should have removed this stupid "64" in the early development stage of LoongArch ELF ABI.] --- chapter04/addinguser.xml | 5 +---- chapter04/creatingminlayout.xml | 6 +----- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'chapter04') diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index b659b4841..3620524c8 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -80,10 +80,7 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs all directories under $LFS by making lfs the directory owner: -chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} -case $(uname -m) in - x86_64) chown -v lfs $LFS/lib64 ;; -esac +chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} In some host systems, the following command does not complete properly and suspends the login to the &lfs-user; user to the background. diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml index cc640a450..45a004096 100644 --- a/chapter04/creatingminlayout.xml +++ b/chapter04/creatingminlayout.xml @@ -24,11 +24,7 @@ for i in bin lib sbin; do ln -sv usr/$i $LFS/$i -done - -case $(uname -m) in - x86_64) mkdir -pv $LFS/lib64 ;; -esac +done Programs in will be compiled with a cross-compiler (more details in section