diff --git a/make/Main.gmk b/make/Main.gmk index e13e6f47386..6753b7dc558 100644 --- a/make/Main.gmk +++ b/make/Main.gmk @@ -971,7 +971,8 @@ else # When creating the BUILDJDK, we don't need to add hashes to java.base, thus # we don't need to depend on all other jmods ifneq ($(CREATING_BUILDJDK), true) - java.base-jmod: jrtfs-jar $(filter-out java.base-jmod, $(JMOD_TARGETS)) + java.base-jmod: jrtfs-jar $(filter-out java.base-jmod \ + $(addsuffix -jmod, $(call FindAllUpgradeableModules)), $(JMOD_TARGETS)) endif # If not already set, set the JVM target so that the JVM will be built.