diff -r d5d542d50e3c -r 30a5049a36bb make/hotspot/lib/JvmFlags.gmk --- a/make/hotspot/lib/JvmFlags.gmk Thu Sep 20 22:01:12 2018 +0200 +++ b/make/hotspot/lib/JvmFlags.gmk Thu Oct 17 11:07:24 2019 +0200 @@ -74,7 +74,7 @@ endif else ifeq ($(DEBUG_LEVEL), fastdebug) JVM_CFLAGS_DEBUGLEVEL := -DASSERT - ifeq ($(filter $(OPENJDK_TARGET_OS), windows aix), ) + ifeq ($(call isTargetOs, windows aix), false) # NOTE: Old build did not define CHECK_UNHANDLED_OOPS on Windows and AIX. JVM_CFLAGS_DEBUGLEVEL += -DCHECK_UNHANDLED_OOPS endif @@ -95,3 +95,7 @@ ifeq ($(USE_PRECOMPILED_HEADER), false) JVM_CFLAGS += -DDONT_USE_PRECOMPILED_HEADER endif + +ifneq ($(HOTSPOT_OVERRIDE_LIBPATH), ) + JVM_CFLAGS += -DOVERRIDE_LIBPATH='"$(HOTSPOT_OVERRIDE_LIBPATH)"' +endif