Ticket #21500: patch-SYSTEM_ZLIB.diff

File patch-SYSTEM_ZLIB.diff, 2.9 KB (added by mvfranz@…, 15 years ago)
  • openjdk/jdk/make/common/Defs-bsd.gmk

    old new  
    315315  SYSTEM_ZLIB = true
    316316endif
    317317
     318ifeq ($(OS_VENDOR), Apple)
     319  SYSTEM_ZLIB = true
     320endif
     321
    318322#
    319323# Japanese manpages
    320324#
  • openjdk/jdk/make/java/instrument/Makefile

    old new  
    117117      OTHER_LDLIBS += -L$(PACKAGE_PATH)/lib -liconv
    118118    endif
    119119  endif
     120  ifeq ($(SYSTEM_ZLIB),true)
     121    LDFLAGS += -lz
     122  endif
    120123else
    121124  LDFLAGS += -L $(LIBDIR)/$(LIBARCH)/jli
    122125  OTHER_LDLIBS += -ljli
  • openjdk/jdk/make/sun/splashscreen/Makefile

    old new  
    6565CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
    6666ifneq ($(SYSTEM_ZLIB),true)
    6767  CPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
     68else
     69  OTHER_LDLIBS += -lz
    6870endif
    6971
    7072
  • openjdk/jdk/src/share/native/java/util/zip/Adler32.c

    old new  
    2929
    3030#include "jni.h"
    3131#include "jni_util.h"
     32#ifdef SYSTEM_ZLIB
     33#include <zlib.h>
     34#else
    3235#include "zlib.h"
     36#endif
    3337
    3438#include "java_util_zip_Adler32.h"
    3539
  • openjdk/jdk/src/share/native/java/util/zip/CRC32.c

    old new  
    2929
    3030#include "jni.h"
    3131#include "jni_util.h"
     32#ifdef SYSTEM_ZLIB
     33#include <zlib.h>
     34#else
    3235#include "zlib.h"
     36#endif
    3337
    3438#include "java_util_zip_CRC32.h"
    3539
  • openjdk/jdk/src/share/native/java/util/zip/Deflater.c

    old new  
    3232#include "jlong.h"
    3333#include "jni.h"
    3434#include "jni_util.h"
     35#ifdef SYSTEM_ZLIB
     36#include <zlib.h>
     37#else
    3538#include "zlib.h"
     39#endif
    3640
    3741#include "java_util_zip_Deflater.h"
    3842
  • openjdk/jdk/src/share/native/java/util/zip/Inflater.c

    old new  
    3535#include "jni.h"
    3636#include "jvm.h"
    3737#include "jni_util.h"
     38#ifdef SYSTEM_ZLIB
     39#include <zlib.h>
     40#else
    3841#include "zlib.h"
     42#endif
    3943#include "java_util_zip_Inflater.h"
    4044
    4145#define ThrowDataFormatException(env, msg) \
  • openjdk/jdk/src/share/native/java/util/zip/zip_util.c

    old new  
    4444#include "io_util.h"
    4545#include "io_util_md.h"
    4646#include "zip_util.h"
     47#ifdef SYSTEM_ZLIB
     48#include <zlib.h>
     49#else
    4750#include "zlib.h"
     51#endif
    4852
    4953#ifdef _ALLBSD_SOURCE
    5054#include "largefile_bsd.h"