diff --git a/make/hotspot/lib/JvmFeatures.gmk b/make/hotspot/lib/JvmFeatures.gmk index 348e645d966..09d868ded79 100644 --- a/make/hotspot/lib/JvmFeatures.gmk +++ b/make/hotspot/lib/JvmFeatures.gmk @@ -153,7 +153,7 @@ ifeq ($(call check-jvm-feature, link-time-opt), true) # like the old build, but it's probably not right. JVM_OPTIMIZATION := JVM_CFLAGS_FEATURES += -O3 -flto - JVM_LDFLAGS_FEATURES += -O3 -flto -fwhole-program -fno-strict-aliasing + JVM_LDFLAGS_FEATURES += -O3 -flto -fuse-linker-plugin -fno-strict-aliasing endif ifeq ($(call check-jvm-feature, minimal), true)