|
@@ -41,28 +41,9 @@
|
|
<sect2 role="installation">
|
|
<sect2 role="installation">
|
|
<title>Installation of Zlib</title>
|
|
<title>Installation of Zlib</title>
|
|
|
|
|
|
- <para>First, fix a typo in the package header file:</para>
|
|
|
|
-
|
|
|
|
-<screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>
|
|
|
|
-
|
|
|
|
<para>Prepare Zlib for compilation:</para>
|
|
<para>Prepare Zlib for compilation:</para>
|
|
|
|
|
|
-<screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen>
|
|
|
|
-
|
|
|
|
- <variablelist>
|
|
|
|
- <title>The meaning of the new configure environment variable:</title>
|
|
|
|
-
|
|
|
|
- <varlistentry>
|
|
|
|
- <term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term>
|
|
|
|
- <listitem>
|
|
|
|
- <para>Setting CFLAGS overrides the default optimization in the
|
|
|
|
- package to prevent some run time errors. Note that the -mstackrealign
|
|
|
|
- may cause build failures in non-Intel architecture systems.</para>
|
|
|
|
- </listitem>
|
|
|
|
- </varlistentry>
|
|
|
|
- </variablelist>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
|
|
|
|
|
<para>Compile the package:</para>
|
|
<para>Compile the package:</para>
|
|
|
|
|