diff -r 4b4e31014e90 -r b124faa29aef jdk/make/common/shared/Defs-linux.gmk --- a/jdk/make/common/shared/Defs-linux.gmk Thu Aug 09 17:49:43 2012 +0200 +++ b/jdk/make/common/shared/Defs-linux.gmk Wed Aug 15 14:35:36 2012 +0100 @@ -129,6 +129,11 @@ BUILD_HEADLESS = true LIBM=-lm +# Set ZLIB_LIBS if not already set +ifeq ("$(ZLIB_LIBS)", "") + ZLIB_LIBS=-lz +endif + # GCC29_COMPILER_PATH: is the path to where the gcc 2.9 compiler is installed # NOTE: Must end with / so that it could be empty, allowing PATH usage. ifdef ALT_GCC29_COMPILER_PATH