< 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


 104 # a time and date.
 105 CXXFLAGS/vm_version.o += ${JRE_VERSION}
 106 
 107 CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
 108 
 109 # File specific flags
 110 CXXFLAGS += $(CXXFLAGS/BYFILE)
 111 
 112 # Large File Support
 113 ifneq ($(LP64), 1)
 114 CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
 115 endif # ifneq ($(LP64), 1)
 116 
 117 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
 118 CFLAGS += $(CFLAGS_WARN/BYFILE)
 119 
 120 # Do not use C++ exception handling
 121 CFLAGS += $(CFLAGS/NOEX)
 122 
 123 # Extra flags from gnumake's invocation or environment
 124 CFLAGS += $(EXTRA_CFLAGS)






 125 LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
 126 
 127 # Don't set excutable bit on stack segment
 128 # the same could be done by separate execstack command
 129 LFLAGS += -Xlinker -z -Xlinker noexecstack
 130 
 131 LIBS += -lm -ldl -lpthread
 132 
 133 # By default, link the *.o into the library, not the executable.
 134 LINK_INTO$(LINK_INTO) = LIBJVM
 135 
 136 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 137 
 138 #----------------------------------------------------------------------
 139 # jvm_db & dtrace
 140 include $(MAKEFILES_DIR)/dtrace.make
 141 
 142 #----------------------------------------------------------------------
 143 # JVM
 144 




 104 # a time and date.
 105 CXXFLAGS/vm_version.o += ${JRE_VERSION}
 106 
 107 CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
 108 
 109 # File specific flags
 110 CXXFLAGS += $(CXXFLAGS/BYFILE)
 111 
 112 # Large File Support
 113 ifneq ($(LP64), 1)
 114 CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64
 115 endif # ifneq ($(LP64), 1)
 116 
 117 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
 118 CFLAGS += $(CFLAGS_WARN/BYFILE)
 119 
 120 # Do not use C++ exception handling
 121 CFLAGS += $(CFLAGS/NOEX)
 122 
 123 # Extra flags from gnumake's invocation or environment
 124 #
 125 # Disallow lowering of hotspot optimization via
 126 # EXTRA_CFLAGS. This is controlled via
 127 # OPT_EXTRAS make variable if so desired. See
 128 # JDK-8210352 for more info.
 129 CFLAGS += $(subst -O0,, $(subst -O2,, \
 130             $(subst -O1,, $(EXTRA_CFLAGS))))
 131 LFLAGS += $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)
 132 
 133 # Don't set excutable bit on stack segment
 134 # the same could be done by separate execstack command
 135 LFLAGS += -Xlinker -z -Xlinker noexecstack
 136 
 137 LIBS += -lm -ldl -lpthread
 138 
 139 # By default, link the *.o into the library, not the executable.
 140 LINK_INTO$(LINK_INTO) = LIBJVM
 141 
 142 JDK_LIBDIR = $(JAVA_HOME)/jre/lib/$(LIBARCH)
 143 
 144 #----------------------------------------------------------------------
 145 # jvm_db & dtrace
 146 include $(MAKEFILES_DIR)/dtrace.make
 147 
 148 #----------------------------------------------------------------------
 149 # JVM
 150 


< prev index next >