From 3674a7abc20037dc287f388c22a75d49dc2000ca Mon Sep 17 00:00:00 2001 From: William Harrington Date: Sun, 21 Mar 2021 11:03:16 -0500 Subject: Add chapter 6 commands. Had some fixes for m4 regrding -Wabi=11 and -fpermissive and help2man --no-discard-stderr for m4 and diffutils. Also had to remove host's /usr/lib/libiberty.a as binutils pass2 kept using it for some reason. --- chapter6/coreutils.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 chapter6/coreutils.sh (limited to 'chapter6/coreutils.sh') diff --git a/chapter6/coreutils.sh b/chapter6/coreutils.sh new file mode 100644 index 0000000..3d221b4 --- /dev/null +++ b/chapter6/coreutils.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +./configure --prefix=/usr \ + --host=${LFS_TGT} \ + --build=$(build-aux/config.guess) \ + --enable-install-program=hostname \ + --enable-no-install-program=kill,uptime && +make && +make DESTDIR=${LFS} -j1 install && +mv -v ${LFS}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} ${LFS}/bin && +mv -v ${LFS}/usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} ${LFS}/bin && +mv -v ${LFS}/usr/bin/{rmdir,stty,sync,true,uname} ${LFS}/bin && +mv -v ${LFS}/usr/bin/{head,nice,sleep,touch} ${LFS}/bin && +mv -v ${LFS}/usr/bin/chroot ${LFS}/usr/sbin && +mkdir -pv ${LFS}/usr/share/man/man8 && +mv -v ${LFS}/usr/share/man/man1/chroot.1 ${LFS}/usr/share/man/man8/chroot.8 && +sed -i 's/"1"/"8"/' ${LFS}/usr/share/man/man8/chroot.8 \ No newline at end of file -- cgit v1.2.3-54-g00ecf