aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/file.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter6/file.sh')
-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