8190284: link-time-opt should not be using -fwhole-program

Reviewed-by: dholmes
This commit is contained in:
Magnus Ihse Bursie 2017-10-30 08:34:54 +01:00
parent 572c174edf
commit fdab870aff

View File

@ -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)