This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Patch] Don't make zlib unless enable-languages=java


>>>>> "Kelley" == Kelley Cook <Kelley.Cook@home.com> writes:

Kelley> Regardless, zlib certainly shouldn't be built before GCC 3.x
Kelley> is built, which is what currently occurs.

zlib is needed by gcj.  If you aren't building gcj then I agree that
building zlib is not necessary.  However, I think your patch will
break gcj builds.

I think you're probably confusing `all-zlib' and `all-target-zlib'.
The former builds a host zlib.  The latter build the target zlib which
is used by libjava.

Kelley> As a side note, why is zlib included in the GCC sources.
Kelley> Shouldn't it just be a pre-installation requirement for
Kelley> building libjava (like texinfo is for creating the info
Kelley> files)?

zlib is required for both the host and the target.  You'll have
bootstrapping problems if it isn't in the tree.  Also, there is a
tradeoff involved.  I wanted to include it because I think it isn't
very common to have it preinstalled, and forcing people to install it
to get the Java compiler would probably just mean that fewer people
would build that compiler.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]