#2630: Zlib issues
--------------------------------+-------------------------------------------
 Reporter:  ch...@…             |       Owner:  lfs-b...@…                   
     Type:  task                |      Status:  new                          
 Priority:  normal              |   Milestone:  6.7                          
Component:  Book                |     Version:  SVN                          
 Severity:  normal              |    Keywords:                               
--------------------------------+-------------------------------------------

Comment(by gespinasse):

 Thank for the info for the .pc file location.

 I think it's wrong to remove --libdir=/lib and manually move the shared
 lib because the .pc file is different and define libdir not where the
 shared lib will be.

 I tested
 {{{
 ./configure --prefix=/usr
 make
 make install pkgconfigdir=/usr/lib/pkgconfig
 }}}

 This change the .pc file to
 {{{
 prefix=/usr
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include

 Name: zlib
 Description: zlib compression library
 Version: 1.2.4

 Requires:
 Libs: -L${libdir} -lz
 Cflags: -I${includedir}

 }}}
 when with --libdir=/lib, it was
 {{{
 prefix=/usr
 exec_prefix=${prefix}
 libdir=/lib
 includedir=${prefix}/include

 Name: zlib
 Description: zlib compression library
 Version: 1.2.4

 Requires:
 Libs: -L${libdir} -lz
 Cflags: -I${includedir}
 }}}

 So libdir define the wrong place in the .pc file when --libdir is not used
 and the shared lib is moved to /lib manually.[[BR]]

 Maybe those instructions could make everyone happy with

 {{{
 ./configure --prefix=/usr --libdir=/lib
 make
 make install pkgconfigdir=/usr/lib/pkgconfig
 mv /lib/libz.a /usr/lib

 }}}
 (and change the perl sed or perl may link against libz.a)

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2630#comment:9>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to