aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04
diff options
context:
space:
mode:
authorThomas Trepl <thomas@linuxfromscratch.org>2020-06-14 21:03:26 +0000
committerThomas Trepl <thomas@linuxfromscratch.org>2020-06-14 21:03:26 +0000
commit70f0882d4c658c6d1355218fccf821ca31d0af18 (patch)
treed81579b604b5a001b77aa1c04ef23a8b407c59bb /chapter04
parent6e18f2f842f2395e20ae1891e10c28beb47d5aa3 (diff)
No /lib64 on i686
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11941 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter04')
-rw-r--r--chapter04/addinguser.xml5
-rw-r--r--chapter04/creatingminlayout.xml5
2 files changed, 8 insertions, 2 deletions
diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml
index 7ee10bef0..6a163f46b 100644
--- a/chapter04/addinguser.xml
+++ b/chapter04/addinguser.xml
@@ -80,7 +80,10 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs</userinput></screen>
all directories under <filename class="directory">$LFS</filename> by making
<systemitem class="username">lfs</systemitem> the directory owner:</para>
-<screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,lib64,tools}</userinput></screen>
+<screen><userinput>chown -v lfs $LFS/{usr,lib,var,etc,bin,sbin,tools}
+case $(uname -m) in
+ x86_64) chown -v lfs $LFS/lib64 ;;
+esac</userinput></screen>
<para>If a separate working directory was created as suggested, give
user <systemitem class="username">lfs</systemitem> ownership of this
diff --git a/chapter04/creatingminlayout.xml b/chapter04/creatingminlayout.xml
index 44cca8d22..731d21c54 100644
--- a/chapter04/creatingminlayout.xml
+++ b/chapter04/creatingminlayout.xml
@@ -19,7 +19,10 @@
<para>Create the required directory layout by running the following as
<systemitem class="username">root</systemitem>:</para>
-<screen><userinput>mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin,lib64}</userinput></screen>
+<screen><userinput>mkdir -pv $LFS/{usr,lib,var,etc,bin,sbin}
+case $(uname -m) in
+ x86_64) mkdir -pv $LFS/lib64 ;;
+esac</userinput></screen>
<para>Programs in <xref linkend="chapter-temporary-tools"/> will be compiled
with a cross-compiler (more details in section <xref