Changeset 4a8b9b3


Ignore:
Timestamp:
05/17/2009 02:08:02 AM (15 years ago)
Author:
Bruce Dubbs <bdubbs@…>
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
Message:

Add zlib-1.2.3-fPIC-1.patch which allows
building static and dynamic libraries in one step.
Also moved the libraries to /usr/lib.
Fixes ticket #2329.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8880 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r1442d77 r4a8b9b3  
    4242      <itemizedlist>
    4343        <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>
    4451          <para>[bdubbs] - Make symbolic links installed by bzip2 relative.
    4552          Fixes
  • chapter01/whatsnew.xml

    r1442d77 r4a8b9b3  
    305305      <para>vim-7.2-fixes-3.patch</para>
    306306    </listitem>
     307    <listitem>
     308      <para>zlib-1.2.3-fPIC-1.patch</para>
     309    </listitem>
    307310
    308311  </itemizedlist>
  • chapter03/patches.xml

    r1442d77 r4a8b9b3  
    235235    </varlistentry> -->
    236236
     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
    237245  </variablelist>
    238246
  • chapter06/zlib.xml

    r1442d77 r4a8b9b3  
    5151    </note>
    5252
     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
    5358    <para>Prepare Zlib for compilation:</para>
    5459
    55 <screen><userinput remap="configure">./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
     60<screen><userinput remap="configure">./configure --prefix=/usr --shared</userinput></screen>
    5661
    5762    <para>Compile the package:</para>
     
    6368<screen><userinput remap="test">make check</userinput></screen>
    6469
    65     <para>Install the shared library:</para>
     70    <para>Install the libraries:</para>
    6671
    6772<screen><userinput remap="install">make install</userinput></screen>
    68 
    69     <para>The previous command installed a <filename
    70     class="extension">.so</filename> file in <filename
    71     class="directory">/lib</filename>. We will remove it and relink it into
    72     <filename class="directory">/usr/lib</filename>:</para>
    73 
    74 <screen><userinput remap="install">rm -v /lib/libz.so
    75 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 clean
    80 ./configure --prefix=/usr
    81 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>
    9473
    9574  </sect2>
  • patches.ent

    r1442d77 r4a8b9b3  
    117117<!ENTITY vim-mandir-patch-size "4.2 KB"> -->
    118118
     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.