diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-21 11:03:16 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-21 11:03:16 -0500 |
commit | 3674a7abc20037dc287f388c22a75d49dc2000ca (patch) | |
tree | 5592fda7bd314957f4258568225316a5c408aa3f /chapter6/xz.sh | |
parent | 1cd9d2d59b3dd72518798879976f52bd76f4bb47 (diff) |
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.
Diffstat (limited to 'chapter6/xz.sh')
-rw-r--r-- | chapter6/xz.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chapter6/xz.sh b/chapter6/xz.sh new file mode 100644 index 0000000..64832ad --- /dev/null +++ b/chapter6/xz.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +./configure --prefix=/usr \ + --host=${LFS_TGT} \ + --build=$(build-aux/config.guess) \ + --disable-static \ + --docdir=/usr/share/doc/xz-5.2.5 && +make && +make DESTDIR=${LFS} -j1 install +mv -v ${LFS}/usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} ${LFS}/bin && +mv -v ${LFS}/usr/lib/liblzma.so.* ${LFS}/lib && +ln -svf ../../lib/$(readlink ${LFS}/usr/lib/liblzma.so) ${LFS}/usr/lib/liblzma.so
\ No newline at end of file |