Changeset 4a8b9b3
- Timestamp:
- 05/17/2009 02:08:02 AM (15 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.5, 6.6, 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:
- af611557
- Parents:
- 1442d77
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r1442d77 r4a8b9b3 42 42 <itemizedlist> 43 43 <listitem> 44 <para>[bdubbs] - Add zlib-1.2.3-fPIC-1.patch which allows 45 building static and dynamic libraries in one step. Also 46 moved the libraries to /usr/lib. 47 Fixes 48 <ulink url="&lfs-ticket-root;2329">#2329</ulink>.</para> 49 </listitem> 50 <listitem> 44 51 <para>[bdubbs] - Make symbolic links installed by bzip2 relative. 45 52 Fixes -
chapter01/whatsnew.xml
r1442d77 r4a8b9b3 305 305 <para>vim-7.2-fixes-3.patch</para> 306 306 </listitem> 307 <listitem> 308 <para>zlib-1.2.3-fPIC-1.patch</para> 309 </listitem> 307 310 308 311 </itemizedlist> -
chapter03/patches.xml
r1442d77 r4a8b9b3 235 235 </varlistentry> --> 236 236 237 <varlistentry> 238 <term>Zlib fPIC Patch - <token>&zlib-fpic-patch-size;</token>:</term> 239 <listitem> 240 <para>Download: <ulink url="&patches-root;&zlib-fpic-patch;"/></para> 241 <para>MD5 sum: <literal>&zlib-fpic-patch-md5;</literal></para> 242 </listitem> 243 </varlistentry> 244 237 245 </variablelist> 238 246 -
chapter06/zlib.xml
r1442d77 r4a8b9b3 51 51 </note> 52 52 53 <para>Modify the build scripts to ensure compilation with position independent 54 code and allow building both static and dynamic libraries in one step:</para> 55 56 <screen><userinput remap="configure">patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen> 57 53 58 <para>Prepare Zlib for compilation:</para> 54 59 55 <screen><userinput remap="configure">./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>60 <screen><userinput remap="configure">./configure --prefix=/usr --shared</userinput></screen> 56 61 57 62 <para>Compile the package:</para> … … 63 68 <screen><userinput remap="test">make check</userinput></screen> 64 69 65 <para>Install the shared library:</para>70 <para>Install the libraries:</para> 66 71 67 72 <screen><userinput remap="install">make install</userinput></screen> 68 69 <para>The previous command installed a <filename70 class="extension">.so</filename> file in <filename71 class="directory">/lib</filename>. We will remove it and relink it into72 <filename class="directory">/usr/lib</filename>:</para>73 74 <screen><userinput remap="install">rm -v /lib/libz.so75 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 73 95 74 </sect2> -
patches.ent
r1442d77 r4a8b9b3 117 117 <!ENTITY vim-mandir-patch-size "4.2 KB"> --> 118 118 119 <!ENTITY zlib-fpic-patch "zlib-&zlib-version;-fPIC-1.patch"> 120 <!ENTITY zlib-fpic-patch-md5 "506ab642a0d5bebeb73552030358b197"> 121 <!ENTITY zlib-fpic-patch-size "21 KB"> 122
Note:
See TracChangeset
for help on using the changeset viewer.