< prev index next >
make/linux/makefiles/vm.make
Print this page
@ rev 8730 : 8210352: [hotspot] --with-extra-cxx-flags should not lower optimization
| Summary: Strip optimization flags from EXTRA_CFLAGS for the JVM.
~ Reviewed-by: duke
@@ -119,11 +119,17 @@
# Do not use C++ exception handling
CFLAGS += $(CFLAGS/NOEX)
# Extra flags from gnumake's invocation or environment
-CFLAGS += $(EXTRA_CFLAGS)
+#
+# Disallow lowering of hotspot optimization via
+# EXTRA_CFLAGS. This is controlled via
+# OPT_EXTRAS make variable if so desired. See
+# JDK-8210352 for more info.
+CFLAGS += $(subst -O0,, $(subst -O2,, \
+ $(subst -O1,, $(EXTRA_CFLAGS))))
LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
# Don't set excutable bit on stack segment
# the same could be done by separate execstack command
LFLAGS += -Xlinker -z -Xlinker noexecstack
< prev index next >