[LFS Trac] #2691: Zlib 1.2.5 issues

LFS Trac trac at linuxfromscratch.org
Tue Jun 22 09:50:48 PDT 2010


#2691: Zlib 1.2.5 issues
---------------------+------------------------------------------------------
 Reporter:  willimm  |       Owner:  lfs-book@…                   
     Type:  defect   |      Status:  new                          
 Priority:  normal   |   Milestone:  6.7                          
Component:  Book     |     Version:  SVN                          
 Severity:  normal   |    Keywords:                               
---------------------+------------------------------------------------------

Comment(by tobias.gasser):

 > *NOTHING* should ever link against a static zlib IMO.


 whenever possible, i add --disable-static to ./configure. i remove ALL
 remaining static libraries where a dynamic one is built (the 2 exceptions
 i mention below).


 even libiberty (binutils) can be made dynamic:
   cd /usr/lib
   mkdir -p TMP
   cd TMP
   ar x ../libiberty.a
   gcc -shared -o libiberty.so \
       -Wl,-soname,libiberty-$D_VER *.o
   strip -d -p libiberty.so
   mv libiberty.so ..
   cd ..
   rm -r TMP


 i just have 2 issues:
 - i can't convince sysvinit to use a dynamic libcrypt
 - and modutils works fine with '--with-zlib-dynamic' but fails if no
 static libc is available.

 those 2 static libs i move to a temp directory after building them, move
 them back to /usr/lib while building sysvinit or modutils and then i
 remove them.


 tobias

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2691#comment:15>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list