JDK should use system's zlib

Panagiotis Astithas past at ebs.gr
Sun Oct 16 11:51:12 PDT 2005


Mikhail T. wrote:
> Hello!
> 
> The system's zlib is much newer and better tested on our various
> platforms.
> 
> JDKs should use it instead of building their own. Attached is the
> patch for ready to be dropped into jdk15/files.
> 
> Just to be sure, a wrong header file is not picked up somewhere
> else in the tree, the little diff below prevents the bundled zlib-1.1.3
> from even being extracted:
> 
> Index: Makefile
> ===================================================================
> RCS file: /home/pcvs/ports/java/jdk15/Makefile,v
> retrieving revision 1.94
> diff -U2 -r1.94 Makefile
> --- Makefile	13 Oct 2005 15:19:18 -0000	1.94
> +++ Makefile	16 Oct 2005 15:04:57 -0000
> @@ -307,2 +307,4 @@
>  
>  .include <bsd.port.post.mk>
> +
> +EXTRACT_AFTER_ARGS+=	-x '*/zlib-*/*'
> 
> 
> Please, test... Something like this should also be done to use the
> already installed libjpeg. Yours,

Seems to be working fine in my testing so far. As a side-effect it has 
shaved 52KB off the libzip.so binary and a total of 4MB on a debug 
installation. On a side note: does EXTRACT_AFTER_ARGS really have to go 
to the end of the Makefile?


Cheers,

Panagiotis


More information about the freebsd-java mailing list