diff --git a/make/autoconf/lib-bundled.m4 b/make/autoconf/lib-bundled.m4 index 75f324f9c81..cee444e553b 100644 --- a/make/autoconf/lib-bundled.m4 +++ b/make/autoconf/lib-bundled.m4 @@ -163,7 +163,9 @@ AC_DEFUN_ONCE([LIB_SETUP_ZLIB], DEFAULT_ZLIB=system if test "x$OPENJDK_TARGET_OS" = xwindows; then - # On windows default is bundled...on others default is system + # On windows default is bundled + DEFAULT_ZLIB=bundled + elif test "x$OPENJDK_TARGET_OS" = xmacosx -a "x$OPENJDK_TARGET_CPU" = xaarch64; then DEFAULT_ZLIB=bundled fi