diff options
Diffstat (limited to 'chapter05/zlib-inst.xml')
-rw-r--r-- | chapter05/zlib-inst.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/chapter05/zlib-inst.xml b/chapter05/zlib-inst.xml new file mode 100644 index 000000000..e3bd2c0d3 --- /dev/null +++ b/chapter05/zlib-inst.xml @@ -0,0 +1,27 @@ +<sect2><title> </title><para> </para></sect2> + +<sect2> +<title>Installation of Zlib</title> + +<para><screen><userinput>patch -Np1 -i ../zlib-&zlib-version;-final-vsnprintf.patch</userinput></screen></para> + +<para>Prepare Zlib to be compiled:</para> + +<para><screen><userinput>CFLAGS="-O2 -pipe" CPPFLAGS="-DHAS_vsnprintf" \ + ./configure --prefix=/stage1 --shared</userinput></screen></para> + +<para>The <emphasis>-fPIC</emphasis> flag helps to assure +quality in the dynamic zlib library.</para> + +<para>Some packages expect a static zlib library to be present +on the system. To satisfy those programs, compile both the +shared and static libraries:</para> + +<para><screen><userinput>make LDFLAGS="-s" +make test</userinput></screen></para> + +<para>Install the libraries:</para> + +<para><screen><userinput>make install</userinput></screen></para> + +</sect2> |