Changeset 4622193e


Ignore:
Timestamp:
01/27/2021 04:43:14 AM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
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.