--- old/make/lib/Awt2dLibraries.gmk 2018-11-27 14:42:40.000000000 -0800 +++ new/make/lib/Awt2dLibraries.gmk 2018-11-27 14:42:40.000000000 -0800 @@ -777,15 +777,8 @@ ifeq ($(USE_EXTERNAL_LIBPNG), false) LIBSPLASHSCREEN_HEADER_DIRS += libsplashscreen/libpng - ifeq ($(OPENJDK_TARGET_OS), macosx) - ifeq ($(USE_EXTERNAL_LIBZ), true) - # When building our own libpng and using an external libz, we need to - # inject our own libz.h to tweak the exported ZLIB_VERNUM macro. See - # $(TOPDIR)/src/java.desktop/macosx/native/libsplashscreen/libpng/zlibwrapper/zlib.h - # for details. This must be specified with -iquote, not -I to avoid a - # circular include. - LIBSPLASHSCREEN_CFLAGS += -iquote $(TOPDIR)/src/$(MODULE)/macosx/native/libsplashscreen/libpng/zlibwrapper - endif + ifeq ($(USE_EXTERNAL_LIBZ), false) + LIBSPLASHSCREEN_CFLAGS += -DPNG_ADLER32_SUPPORTED endif else LIBSPLASHSCREEN_EXCLUDES += libpng