From 4622193e8e3034bb1647ac05a1074ec61748c20a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 27 Jan 2021 04:43:14 +0000 Subject: libcap: make the installation like other packages git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12102 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/libcap.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml index fc3335f25..f3b6c0074 100644 --- a/chapter08/libcap.xml +++ b/chapter08/libcap.xml @@ -49,7 +49,7 @@ Compile the package: -make lib=lib +make prefix=/usr lib=lib The meaning of the make option: @@ -58,8 +58,8 @@ lib=lib This parameter sets the library directory to - /lib rather than - /lib64 on x86_64. It has no effect on + /usr/lib rather than + /usr/lib64 on x86_64. It has no effect on x86. @@ -69,13 +69,14 @@ make test - Install the package and do some cleanup: + Install the package and make sure the essential libraries are in + the correct directory: -make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install +make prefix=/usr lib=lib install for libname in cap psx; do - chmod -v 755 /lib/lib${libname}.so.&libcap-version; - rm -v /lib/lib${libname}.so + mv -v /usr/lib/lib${libname}.so.* /lib ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so + chmod -v 755 /lib/lib${libname}.so.&libcap-version; done -- cgit v1.2.3-54-g00ecf