aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08/libcap.xml
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-11-17 14:50:35 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-11-17 14:50:35 +0000
commite8c3099a45550ea7ba8657496e31405441e57d8f (patch)
treebbbb42df4644a0ed5735220e2abb87ac8fb30faa /chapter08/libcap.xml
parent9d9c3fdfd86cf0f8cbcce5a776df7231b35516dc (diff)
Adapt libcap instruction to the new libpsx.so shared library (was only static
before) git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12061 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter08/libcap.xml')
-rw-r--r--chapter08/libcap.xml15
1 files changed, 8 insertions, 7 deletions
diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml
index d9ae8674f..fc3335f25 100644
--- a/chapter08/libcap.xml
+++ b/chapter08/libcap.xml
@@ -43,9 +43,9 @@
<sect2 role="installation">
<title>Installation of Libcap</title>
- <para>Prevent a static library from being installed:</para>
+ <para>Prevent static libraries from being installed:</para>
-<screen><userinput remap="pre">sed -i '/install -m.*STACAPLIBNAME/d' libcap/Makefile</userinput></screen>
+<screen><userinput remap="pre">sed -i '/install -m.*STA/d' libcap/Makefile</userinput></screen>
<para>Compile the package:</para>
@@ -72,10 +72,11 @@
<para>Install the package and do some cleanup:</para>
<screen><userinput remap="install">make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install
-chmod -v 755 /lib/libcap.so.&libcap-version;
-mv -v /lib/libpsx.a /usr/lib
-rm -v /lib/libcap.so
-ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
+for libname in cap psx; do
+ chmod -v 755 /lib/lib${libname}.so.&libcap-version;
+ rm -v /lib/lib${libname}.so
+ ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
+done</userinput></screen>
</sect2>
@@ -88,7 +89,7 @@ ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so</userinput></screen>
<seglistitem>
<seg>capsh, getcap, getpcaps, and setcap</seg>
- <seg>libcap.so and libpsx.a</seg>
+ <seg>libcap.so and libpsx.so</seg>
</seglistitem>
</segmentedlist>