- Timestamp:
- 01/30/2012 09:20:31 PM (13 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, 12.2, 12.2-rc1, 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/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 3380af3
- Parents:
- 956dfc8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/zlib.xml
r956dfc8 re3f07935 42 42 <title>Installation of Zlib</title> 43 43 44 <para>First, fix a typo in the package header file:</para>45 46 <screen><userinput remap="pre">sed -i 's/ifdef _LARGEFILE64_SOURCE/ifndef _LARGEFILE64_SOURCE/' zlib.h</userinput></screen>47 48 44 <para>Prepare Zlib for compilation:</para> 49 45 50 <screen><userinput remap="configure">CFLAGS='-mstackrealign -fPIC -O3' ./configure --prefix=/usr</userinput></screen> 51 52 <variablelist> 53 <title>The meaning of the new configure environment variable:</title> 54 55 <varlistentry> 56 <term><envar>CFLAGS='-mstackrealign -fPIC -O3'</envar></term> 57 <listitem> 58 <para>Setting CFLAGS overrides the default optimization in the 59 package to prevent some run time errors. Note that the -mstackrealign 60 may cause build failures in non-Intel architecture systems.</para> 61 </listitem> 62 </varlistentry> 63 </variablelist> 64 65 46 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen> 66 47 67 48 <para>Compile the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.