|
@@ -41,18 +41,9 @@
|
|
<sect2 role="installation">
|
|
<sect2 role="installation">
|
|
<title>Installation of Zlib</title>
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
|
- <note>
|
|
|
|
- <para>Zlib is known to build its shared library incorrectly if
|
|
|
|
- <envar>CFLAGS</envar> is specified in the environment. If using
|
|
|
|
- a specified <envar>CFLAGS</envar> variable, be sure to add the
|
|
|
|
- <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
|
|
|
|
- variable for the duration of the configure command below, then
|
|
|
|
- remove it when building the static library.</para>
|
|
|
|
- </note>
|
|
|
|
-
|
|
|
|
<para>Prepare Zlib for building the dynamic library:</para>
|
|
<para>Prepare Zlib for building the dynamic library:</para>
|
|
|
|
|
|
-<screen><userinput remap="configure">./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
|
|
|
|
|
|
+<screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen>
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
@@ -74,24 +65,6 @@
|
|
<screen><userinput remap="install">rm -v /lib/libz.so
|
|
<screen><userinput remap="install">rm -v /lib/libz.so
|
|
ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
|
ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen>
|
|
|
|
|
|
- <para>Build the static library:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput remap="make">make clean
|
|
|
|
-./configure --prefix=/usr
|
|
|
|
-make</userinput></screen>
|
|
|
|
-
|
|
|
|
- <para>To test the results again, issue:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput remap="test">make check</userinput></screen>
|
|
|
|
-
|
|
|
|
- <para>Install the static library:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
-
|
|
|
|
- <para>Fix the permissions on the static library:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput remap="install">chmod -v 644 /usr/lib/libz.a</userinput></screen>
|
|
|
|
-
|
|
|
|
</sect2>
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="contents-zlib" role="content">
|
|
<sect2 id="contents-zlib" role="content">
|