Author: xry111
Date: Tue Jan 26 20:43:14 2021
New Revision: 12102
Log:
libcap: make the installation like other packages
Modified:
trunk/BOOK/chapter08/libcap.xml
Modified: trunk/BOOK/chapter08/libcap.xml
==============================================================================
--- trunk/BOOK/chapter08/libcap.xml Sat Jan 23 08:45:42 2021 (r12101)
+++ trunk/BOOK/chapter08/libcap.xml Tue Jan 26 20:43:14 2021 (r12102)
@@ -49,7 +49,7 @@
<para>Compile the package:</para>
-<screen><userinput remap="make">make lib=lib</userinput></screen>
+<screen><userinput remap="make">make prefix=/usr lib=lib</userinput></screen>
<variablelist>
<title>The meaning of the make option:</title>
@@ -58,8 +58,8 @@
<term><parameter>lib=lib</parameter></term>
<listitem>
<para>This parameter sets the library directory to
- <filename>/lib</filename> rather than
- <filename>/lib64</filename> on x86_64. It has no effect on
+ <filename>/usr/lib</filename> rather than
+ <filename>/usr/lib64</filename> on x86_64. It has no effect on
x86.</para>
</listitem>
</varlistentry>
@@ -69,13 +69,14 @@
<screen><userinput remap="test">make test</userinput></screen>
- <para>Install the package and do some cleanup:</para>
+ <para>Install the package and make sure the essential libraries are in
+ the correct directory:</para>
-<screen><userinput remap="install">make lib=lib
PKGCONFIGDIR=/usr/lib/pkgconfig install
+<screen><userinput remap="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</userinput></screen>
</sect2>
--
http://lists.linuxfromscratch.org/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page