$NetBSD: patch-make_autoconf_buildjdk-spec.gmk.in,v 1.1 2023/11/22 14:06:50 ryoon Exp $ Use the same variant for the buildjdk as the target jdk. This is needed for native builds on platforms where hotspot is broken or not supported. In that case the buildjdk can't be hardcoded to "server" but must use "zero". This is fine for pkgsrc since we only ever build one variant. --- make/autoconf/buildjdk-spec.gmk.in.orig 2022-04-23 02:25:56.000000000 +0000 +++ make/autoconf/buildjdk-spec.gmk.in @@ -94,8 +94,9 @@ DISABLE_WARNING_PREFIX := @BUILD_CC_DISA # Save speed and disk space by not enabling debug symbols for the buildjdk ENABLE_DEBUG_SYMBOLS := false -JVM_VARIANTS := server -JVM_VARIANT_MAIN := server +JVM_VARIANTS := @JVM_VARIANTS@ +JVM_VARIANT_MAIN := @JVM_VARIANT_MAIN@ +JVM_FEATURES_zero := g1gc serialgc zero JVM_FEATURES_server := cds compiler1 compiler2 g1gc serialgc # Some users still set EXTRA_*FLAGS on the make command line. Must