comparison make/solaris/makefiles/vm.make @ 8061:e7e9e08147fc

8007639: Workaround for ccache in vm.make is incorrect Summary: Fixed makefile logic to correctly special case JRE_RELEASE_VERSION and vm_version.o Reviewed-by: dholmes, erikj
author mikael
date Thu, 14 Feb 2013 12:36:07 -0800
parents 892acf0431ef
children 1b0dc9f87e75
comparison
equal deleted inserted replaced
8060:3a531d40ad93 8061:e7e9e08147fc
86 ${VM_DISTRO} 86 ${VM_DISTRO}
87 87
88 # This is VERY important! The version define must only be supplied to vm_version.o 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 89 # If not, ccache will not re-use the cache at all, since the version string might contain
90 # a time and date. 90 # a time and date.
91 vm_version.o: CXXFLAGS += ${JRE_VERSION} 91 CXXFLAGS/vm_version.o += ${JRE_VERSION}
92
93 CXXFLAGS/BYFILE = $(CXXFLAGS/$@)
94
95 # File specific flags
96 CXXFLAGS += $(CXXFLAGS/BYFILE)
97
92 98
93 # CFLAGS_WARN holds compiler options to suppress/enable warnings. 99 # CFLAGS_WARN holds compiler options to suppress/enable warnings.
94 CFLAGS += $(CFLAGS_WARN) 100 CFLAGS += $(CFLAGS_WARN)
95 101
96 # Do not use C++ exception handling 102 # Do not use C++ exception handling