73 JRE_VERSION = -DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\"" 74 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\" 75 BUILD_TARGET = -DHOTSPOT_BUILD_TARGET="\"$(TARGET)\"" 76 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\"" 77 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\"" 78 79 CXXFLAGS = \ 80 ${SYSDEFS} \ 81 ${INCLUDES} \ 82 ${BUILD_VERSION} \ 83 ${BUILD_TARGET} \ 84 ${BUILD_USER} \ 85 ${HS_LIB_ARCH} \ 86 ${VM_DISTRO} 87 88 # This is VERY important! The version define must only be supplied to vm_version.o 89 # If not, ccache will not re-use the cache at all, since the version string might contain 90 # a time and date. 91 vm_version.o: CXXFLAGS += ${JRE_VERSION} 92 93 # CFLAGS_WARN holds compiler options to suppress/enable warnings. 94 CFLAGS += $(CFLAGS_WARN) 95 96 # Do not use C++ exception handling 97 CFLAGS += $(CFLAGS/NOEX) 98 99 # Extra flags from gnumake's invocation or environment 100 CFLAGS += $(EXTRA_CFLAGS) 101 102 ifeq ($(INCLUDE_TRACE), 1) 103 CFLAGS += -DINCLUDE_TRACE=1 104 endif 105 106 # Math Library (libm.so), do not use -lm. 107 # There might be two versions of libm.so on the build system: 108 # libm.so.1 and libm.so.2, and we want libm.so.1. 109 # Depending on the Solaris release being used to build with, 110 # /usr/lib/libm.so could point at a libm.so.2, so we are 111 # explicit here so that the libjvm.so you have built will work on an 112 # older Solaris release that might not have libm.so.2. | 73 JRE_VERSION = -DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\"" 74 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\" 75 BUILD_TARGET = -DHOTSPOT_BUILD_TARGET="\"$(TARGET)\"" 76 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\"" 77 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\"" 78 79 CXXFLAGS = \ 80 ${SYSDEFS} \ 81 ${INCLUDES} \ 82 ${BUILD_VERSION} \ 83 ${BUILD_TARGET} \ 84 ${BUILD_USER} \ 85 ${HS_LIB_ARCH} \ 86 ${VM_DISTRO} 87 88 # This is VERY important! The version define must only be supplied to vm_version.o 89 # If not, ccache will not re-use the cache at all, since the version string might contain 90 # a time and date. 91 vm_version.o: CXXFLAGS += ${JRE_VERSION} 92 93 # Large File Support 94 ifneq ($(LP64), 1) 95 CXXFLAGS/ostream.o += -D_FILE_OFFSET_BITS=64 96 endif # ifneq ($(LP64), 1) 97 98 # CFLAGS_WARN holds compiler options to suppress/enable warnings. 99 CFLAGS += $(CFLAGS_WARN) 100 101 # Do not use C++ exception handling 102 CFLAGS += $(CFLAGS/NOEX) 103 104 # Extra flags from gnumake's invocation or environment 105 CFLAGS += $(EXTRA_CFLAGS) 106 107 ifeq ($(INCLUDE_TRACE), 1) 108 CFLAGS += -DINCLUDE_TRACE=1 109 endif 110 111 # Math Library (libm.so), do not use -lm. 112 # There might be two versions of libm.so on the build system: 113 # libm.so.1 and libm.so.2, and we want libm.so.1. 114 # Depending on the Solaris release being used to build with, 115 # /usr/lib/libm.so could point at a libm.so.2, so we are 116 # explicit here so that the libjvm.so you have built will work on an 117 # older Solaris release that might not have libm.so.2. |