make/java/zip/Makefile

Print this page

        

@@ -54,10 +54,14 @@
   ifneq ($(LIBZIP_CAN_USE_MMAP),false)
     OTHER_CFLAGS += -DUSE_MMAP
   endif
 endif
 
+ifeq ($(SYSTEM_ZLIB),true)
+  OTHER_CFLAGS += $(ZLIB_CFLAGS)
+endif
+
 #
 # Library to compile.
 #
 ifeq ($(PLATFORM), solaris)
   ifneq ($(ARCH), amd64)

@@ -88,10 +92,10 @@
 
 #
 # Link to JVM library for JVM_Zip* functions
 #
 ifeq ($(SYSTEM_ZLIB),true)
-OTHER_LDLIBS = -lz
+OTHER_LDLIBS = $(ZLIB_LIBS)
 else
 OTHER_LDLIBS = $(JVMLIB)
 endif