aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:36:47 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:36:47 -0500
commite73cb213997207dbe4e9ba9dead3c0f34486d7fb (patch)
tree4df549a78dee5995bd73a09dd8e99b0487c473c1
parentf7343ae4287635379a9cb71eb4e420bc641e35ee (diff)
parent6ee9f0eb113f624cb7eef8932bd017a17b0dac92 (diff)
Merge branch 'cleanup' into chapter8
-rw-r--r--chapter6/file.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/chapter6/file.sh b/chapter6/file.sh
index 5323924..bc2cd38 100644
--- a/chapter6/file.sh
+++ b/chapter6/file.sh
@@ -13,5 +13,8 @@ popd > /dev/null || exit 1
./configure --prefix=/usr \
--host="${LFS_TGT}" \
--build="$(./config.guess)" &&
-make FILE_COMPILE="$(pwd)/build/src/file" &&
+make FILE_COMPILE="$(pwd)"/build/src/file &&
make DESTDIR="${LFS}" -j1 install
+
+mv -v "${LFS}"/usr/lib/libmagic.so.* $LFS/lib
+ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" "${LFS}"/usr/lib/libmagic.so