- Timestamp:
- 03/18/2010 07:56:39 PM (14 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- bdb539b
- Parents:
- 00f95f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/zlib.xml
r00f95f0 r0d9018b 42 42 <title>Installation of Zlib</title> 43 43 44 <note>45 <para>Zlib is known to build its shared library incorrectly if46 <envar>CFLAGS</envar> is specified in the environment. If using47 a specified <envar>CFLAGS</envar> variable, be sure to add the48 <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>49 variable for the duration of the configure command below, then50 remove it when building the static library.</para>51 </note>52 53 44 <para>Prepare Zlib for building the dynamic library:</para> 54 45 55 <screen><userinput remap="configure">./configure --prefix=/usr -- shared --libdir=/lib</userinput></screen>46 <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib</userinput></screen> 56 47 57 48 <para>Compile the package:</para> … … 74 65 <screen><userinput remap="install">rm -v /lib/libz.so 75 66 ln -sfv ../../lib/libz.so.&zlib-version; /usr/lib/libz.so</userinput></screen> 76 77 <para>Build the static library:</para>78 79 <screen><userinput remap="make">make clean80 ./configure --prefix=/usr81 make</userinput></screen>82 83 <para>To test the results again, issue:</para>84 85 <screen><userinput remap="test">make check</userinput></screen>86 87 <para>Install the static library:</para>88 89 <screen><userinput remap="install">make install</userinput></screen>90 91 <para>Fix the permissions on the static library:</para>92 93 <screen><userinput remap="install">chmod -v 644 /usr/lib/libz.a</userinput></screen>94 67 95 68 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.