aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:35:05 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:35:05 -0500
commit6ee9f0eb113f624cb7eef8932bd017a17b0dac92 (patch)
tree6becfcf6b5770a8c27152b01cdd75e06c3b03733
parentaf55a0c0b55086338ab72421bafabe234106c0a3 (diff)
Add commands to file for moving shared library.
-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