mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
libcap: make the installation like other packages
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12102 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
8850677dc5
commit
4622193e8e
@ -49,7 +49,7 @@
|
|||||||
|
|
||||||
<para>Compile the package:</para>
|
<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>
|
<variablelist>
|
||||||
<title>The meaning of the make option:</title>
|
<title>The meaning of the make option:</title>
|
||||||
@ -58,8 +58,8 @@
|
|||||||
<term><parameter>lib=lib</parameter></term>
|
<term><parameter>lib=lib</parameter></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>This parameter sets the library directory to
|
<para>This parameter sets the library directory to
|
||||||
<filename>/lib</filename> rather than
|
<filename>/usr/lib</filename> rather than
|
||||||
<filename>/lib64</filename> on x86_64. It has no effect on
|
<filename>/usr/lib64</filename> on x86_64. It has no effect on
|
||||||
x86.</para>
|
x86.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -69,13 +69,14 @@
|
|||||||
|
|
||||||
<screen><userinput remap="test">make test</userinput></screen>
|
<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
|
for libname in cap psx; do
|
||||||
chmod -v 755 /lib/lib${libname}.so.&libcap-version;
|
mv -v /usr/lib/lib${libname}.so.* /lib
|
||||||
rm -v /lib/lib${libname}.so
|
|
||||||
ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
|
ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
|
||||||
|
chmod -v 755 /lib/lib${libname}.so.&libcap-version;
|
||||||
done</userinput></screen>
|
done</userinput></screen>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
Loading…
Reference in New Issue
Block a user