#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 jhuntwork):
Replying to [comment:3 bdu...@…]:
>
> Define 'much longer'. I'd still be nervous about it.
To be honest, I didn't capture the time. I halted it after I saw it
building zlib and started looking for the switch to use, but it had
already been going for at least twice that amount. Trivial, I know, but to
me, the reason for doing this is less about saving time and more about
using the build method to our advantage.
Why nervous? It's not like we're hacking the GCC code (a feat we've done
more than I'd like in chapter 5). We're using a switch that they put there
for that purpose.
> 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.
I do know why we build gmp and mpfr separately, and for the same reasons
we've already built zlib and put it way up in the build order. Actually,
when including BLFS packages, zlib is one of the most used libraries. All
throughout BLFS there are switches used to link to the system installed
zlib instead of included versions. My suggestion for the doing this here
is just the same as what we've done elsewhere.
In any case, this is really a trivial issue. I leave it up to you active
devs...
--
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2718#comment:4>
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