#2718: Have GCC link to system zlib
-------------------------+--------------------------------------------------
Reporter: jhuntwork | Owner: lfs-b...@…
Type: enhancement | Status: new
Priority: normal | Milestone: 6.7
Component: Book | Version: SVN
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Comment(by bdu...@…):
My version according to the book right now is:
{{{
ldd /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1
linux-vdso.so.1 => (0x00007ffff23ff000)
libmpc.so.2 => /usr/lib/libmpc.so.2 (0x00007fe41362b000)
libmpfr.so.4 => /usr/lib/libmpfr.so.4 (0x00007fe4133d3000)
libgmp.so.10 => /usr/lib/libgmp.so.10 (0x00007fe413167000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fe412f63000)
libc.so.6 => /lib/libc.so.6 (0x00007fe412c07000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe41383e000)
}}}
Looking through the source for zlib.h and eliminating things like the zlib
directory itself and makefiles, I have:
* gcc/lto-compress.c
* cc/java/jcf-io.c
* libjava/java/util/zip/natDeflater.cc
That's it. Looking at gcc/lto-compress.c, it calls deflateInit, deflate,
deflateEnd, inflateInit, inflate, inflateEnd one time each.
To me using the current version within gcc (1.2.3) or an external version
doesn't make any difference. I'll go along with whatever Matt prefers.
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2718#comment:11>
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