From 6ee9f0eb113f624cb7eef8932bd017a17b0dac92 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Wed, 7 Apr 2021 12:35:05 -0500 Subject: Add commands to file for moving shared library. --- chapter6/file.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chapter6') 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 -- cgit v1.2.3-54-g00ecf