Changeset ea2dfe7


Ignore:
Timestamp:
05/27/2009 06:33:49 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:
2ed4b452
Parents:
13fe71e
Message:

Revert zlib to doing separate builds for
static and dynamic libraries to ensure the -fPIC parameter
is set properly in both cases.

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

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r13fe71e rea2dfe7  
    4242      <itemizedlist>
    4343        <listitem>
     44          <para>[bdubbs] - Revert zlib to doing separate builds for
     45          static and dynamic libraries to ensure the -fPIC parameter
     46          is set properly in both cases.
     47          Fixes <ulink url="&lfs-ticket-root;2329">#2329</ulink> (again).</para>
     48        </listitem>
     49        <listitem>
    4450          <para>[bdubbs] - Update gettext patch to -2 for an additional
    4551          bug fix.  Thanks to Robert Connolly for the patch.
  • chapter01/whatsnew.xml

    r13fe71e rea2dfe7  
    308308      <para>vim-7.2-fixes-3.patch</para>
    309309    </listitem>
     310    <!--
    310311    <listitem>
    311312      <para>zlib-1.2.3-fPIC-1.patch</para>
    312313    </listitem>
    313 
     314    -->
    314315  </itemizedlist>
    315316
  • chapter06/zlib.xml

    r13fe71e rea2dfe7  
    4848      <parameter>-fPIC</parameter> directive to the <envar>CFLAGS</envar>
    4949      variable for the duration of the configure command below, then
    50       remove it afterwards.</para>
     50      remove it when building the static library.</para>
    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>
     53    <para>Prepare Zlib for building the dynamic library:</para>
    5554
    56 <screen><userinput remap="configure">patch -Np1 -i ../&zlib-fpic-patch;</userinput></screen>
    57 
    58     <para>Prepare Zlib for compilation:</para>
    59 
    60 <screen><userinput remap="configure">./configure --prefix=/usr --shared</userinput></screen>
     55<screen><userinput remap="configure">./configure --prefix=/usr --shared --libdir=/lib</userinput></screen>
    6156
    6257    <para>Compile the package:</para>
     
    6863<screen><userinput remap="test">make check</userinput></screen>
    6964
    70     <para>Install the libraries:</para>
     65    <para>Install the shared library:</para>
    7166
    7267<screen><userinput remap="install">make install</userinput></screen>
    7368
    74     <para>Finally, fix permissions on the static library:</para>
     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>
    7573
    76 <screen><userinput remap="install">chmod 0644 /usr/lib/libz.a</userinput></screen>
     74<screen><userinput remap="install">rm -v /lib/libz.so
     75ln -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
     81make</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>
    7794
    7895  </sect2>
  • general.ent

    r13fe71e rea2dfe7  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "SVN-20090526">
    3 <!ENTITY releasedate "May 26, 2009">
     2<!ENTITY version "SVN-20090527">
     3<!ENTITY releasedate "May 27, 2009">
    44<!ENTITY copyrightdate "1999-2009"><!-- jhalfs needs a literal dash, not &ndash; -->
    55<!ENTITY milestone "6.5">
Note: See TracChangeset for help on using the changeset viewer.