Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/zstd.xml

    rd7a9421 redd83dc  
    5555<screen><userinput remap="install">make prefix=/usr install</userinput></screen>
    5656
    57     <para>Remove the static library:</para>
    58 <screen><userinput remap="install">rm -v /usr/lib/libzstd.a</userinput></screen>
     57    <para>Remove the static library and move the shared library to
     58    <filename class="directory">/lib</filename>. Also, the
     59    <filename class="extension">.so</filename> file in
     60    <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
     61
     62<screen><userinput remap="install">rm -v /usr/lib/libzstd.a
     63mv -v /usr/lib/libzstd.so.* /lib
     64ln -sfv ../../lib/$(readlink /usr/lib/libzstd.so) /usr/lib/libzstd.so</userinput></screen>
    5965
    6066  </sect2>
     67
     68  <!-- - - - - - - - - - -->
     69  <!-- Multilib - 32bit  -->
     70  <!-- - - - - - - - - - -->
     71 
     72  <sect2 arch="ml_32,ml_all" role="installation">
     73    <title>Installation of Zstd - 32bit</title>
     74
     75    <para>Clean previous build:</para>
     76
     77<screen><userinput remap="pre">make clean</userinput></screen>
     78
     79    <para>Compile the package:</para>
     80
     81<screen><userinput remap="make">CC="gcc -m32" make</userinput></screen>
     82
     83    <para>Install the package:</para>
     84
     85<screen><userinput remap="install">CC="gcc -m32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
     86cp -Rv DESTDIR/usr/lib/* &usr-lib-m32;/
     87sed -e "/^libdir/s/lib$&lib-m32;/" -i &usr-lib-m32;/pkgconfig/libzstd.pc
     88rm -rf DESTDIR</userinput></screen>
     89
     90  </sect2><!-- m32 -->
     91
     92  <!-- - - - - - - - - - -->
     93  <!-- Multilib - x32bit -->
     94  <!-- - - - - - - - - - -->
     95 
     96  <sect2 arch="ml_x32,ml_all" role="installation">
     97    <title>Installation of Zstd - x32bit</title>
     98
     99    <para>Clean previous build:</para>
     100
     101<screen><userinput remap="pre">make clean</userinput></screen>
     102
     103    <para>Compile the package:</para>
     104
     105<screen><userinput remap="make">CC="gcc -mx32" make</userinput></screen>
     106
     107    <para>Install the package:</para>
     108
     109<screen><userinput remap="install">CC="gcc -mx32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
     110cp -Rv DESTDIR/usr/lib/* &usr-lib-mx32;/
     111sed -e "/^libdir/s/lib$&lib-mx32;/" -i &usr-lib-mx32;/pkgconfig/libzstd.pc
     112rm -rf DESTDIR</userinput></screen>
     113
     114  </sect2><!-- mx32 -->
    61115
    62116  <sect2 id="contents-zstd" role="content">
Note: See TracChangeset for help on using the changeset viewer.