Ignore:
Timestamp:
01/27/2021 04:43:14 AM (3 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
742c6324
Parents:
8850677
Message:

libcap: make the installation like other packages

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12102 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/libcap.xml

    r8850677 r4622193e  
    5050    <para>Compile the package:</para>
    5151
    52 <screen><userinput remap="make">make lib=lib</userinput></screen>
     52<screen><userinput remap="make">make prefix=/usr lib=lib</userinput></screen>
    5353
    5454    <variablelist>
     
    5959        <listitem>
    6060          <para>This parameter sets the library directory to
    61           <filename>/lib</filename> rather than
    62           <filename>/lib64</filename> on x86_64. It has no effect on
     61          <filename>/usr/lib</filename> rather than
     62          <filename>/usr/lib64</filename> on x86_64. It has no effect on
    6363          x86.</para>
    6464        </listitem>
     
    7070<screen><userinput remap="test">make test</userinput></screen>
    7171
    72     <para>Install the package and do some cleanup:</para>
     72    <para>Install the package and make sure the essential libraries are in
     73    the correct directory:</para>
    7374
    74 <screen><userinput remap="install">make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install
     75<screen><userinput remap="install">make prefix=/usr lib=lib install
    7576for libname in cap psx; do
     77    mv -v /usr/lib/lib${libname}.so.* /lib
     78    ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
    7679    chmod -v 755 /lib/lib${libname}.so.&libcap-version;
    77     rm -v /lib/lib${libname}.so
    78     ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
    7980done</userinput></screen>
    8081
Note: See TracChangeset for help on using the changeset viewer.