#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...@…):

 Replying to [comment:2 jhuntwork]:
 > Replying to [comment:1 bdu...@…]:

 > It's using -lz within the build, so I believe all uses are of the static
 library.

 OK.

 > Any time that can be saved is worth considering saving. In any case, the
 version of zlib that comes with gcc is an older one and for some reason it
 takes much longer than 5 seconds. Run through a build, you'll see what I
 mean.

 Define 'much longer'.  I'd still be nervous about it.

 > Zlib already is before GCC in chapter 6.

 Yes.  For some reason I was thinking of glibc.

 > > I don't see other distros doing this and the potential to do harm is
 greater than what appears to be a negligible benefit.

 > I would accept this as a potentially valid argument if you applied that
 same principle to the other libraries that gcc uses and could be built in
 statically, namely, gmp and mpfr. As it is, since you install those to the
 system in chapter 6 solely for the sake of GCC, then you're already
 setting a precedent.

 We build gmp and mpfr separately so other programs have them available.  I
 have no idea why gcc needs libz anyway.  It doesn't make sense to me.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2718#comment:3>
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