Changeset ef13657 for chapter06/zlib.xml


Ignore:
Timestamp:
08/08/2004 02:11:09 AM (20 years ago)
Author:
Gerard Beekmans <gerard@…>
Branches:
6.0
Children:
5ba3d1d
Parents:
6e41459
Message:

Completed global edits for upcoming 6.0 release

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/zlib.xml

    r6e41459 ref13657  
    2929<title>Installation of Zlib</title>
    3030
    31 <note><para>Zlib is known to build its shared library incorrectly if CFLAGS is
    32 specified in the environment. If you are using your own CFLAGS variable, be
    33 sure to add the <parameter>-fPIC</parameter> directive to your CFLAGS for the
    34 duration of the below <command>configure</command> command, then remove it
    35 afterwards.</para></note>
     31<note><para>Zlib is known to build its shared library incorrectly if
     32CFLAGS is specified in the environment. If using a specified CFLAGS
     33variable, be sure to add the <parameter>-fPIC</parameter> directive to
     34the <emphasis>CFLAGS</emphasis> variable for the duration of the
     35configure command below, then remove it afterwards.</para></note>
    3636
    3737<para>Prepare Zlib for compilation:</para>
     
    5050<screen><userinput>make install</userinput></screen>
    5151
    52 <para>Now also build the non-shared (static) library:</para>
     52<para>Build the static library:</para>
    5353
    5454<screen><userinput>make clean
     
    5656make</userinput></screen>
    5757
    58 <para>To again test the results, issue:
     58<para>To test the results again, issue:
    5959<userinput>make check</userinput>.</para>
    6060
     
    6363<screen><userinput>make install</userinput></screen>
    6464
    65 <para>And fix the permissions on the static library:</para>
     65<para>Fix the permissions on the static library:</para>
    6666
    6767<screen><userinput>chmod 644 /usr/lib/libz.a</userinput></screen>
    6868
    69 <para>It is good policy and common practice to place important libraries into
    70 the <filename class="directory">/lib</filename> directory. This matters most
    71 in scenarios where <filename class="directory">/usr</filename> is on a
    72 separate partition. Essentially, the run-time components of any libraries that
    73 are used by programs in <filename class="directory">/bin</filename> or
    74 <filename class="directory">/sbin</filename> should reside in
    75 <filename class="directory">/lib</filename> so that they are on the root
    76 partition and available in the event of
    77 <filename class="directory">/usr</filename> being inaccessible.</para>
     69<para>It is good policy and common practice to place important
     70libraries into the <filename class="directory">/lib</filename>
     71directory. This is most important in scenarios where <filename
     72class="directory">/usr</filename> is on a separate partition.
     73Essentially, the run-time components of any libraries that are used by
     74programs in <filename class="directory">/bin</filename> or <filename
     75class="directory">/sbin</filename> should reside in <filename
     76class="directory">/lib</filename> so that they are on the root
     77partition and available in the event of <filename
     78class="directory">/usr</filename> being inaccessible.</para>
    7879
    79 <para>For the above reason we move the run-time components of the shared Zlib
     80<para>For the above reason, move the run-time components of the shared Zlib
    8081into <filename class="directory">/lib</filename>:</para>
    8182
    8283<screen><userinput>mv /usr/lib/libz.so.* /lib</userinput></screen>
    8384
    84 <para>Now we need to fix the <filename class="symlink">/usr/lib/libz.so</filename> symlink
    85 because we just moved the file it points to:</para>
     85<para>Fix the <filename class="symlink">/usr/lib/libz.so</filename> symlink
     86after the above move:</para>
    8687
    8788<screen><userinput>ln -sf ../../lib/libz.so.1 /usr/lib/libz.so</userinput></screen>
     
    112113
    113114</sect1>
     115
Note: See TracChangeset for help on using the changeset viewer.