1.1 --- a/make/linux/makefiles/vm.make Fri May 25 14:48:32 2018 +0800 1.2 +++ b/make/linux/makefiles/vm.make Tue Jul 24 13:22:11 2018 +0800 1.3 @@ -23,8 +23,8 @@ 1.4 # 1.5 1.6 # 1.7 -# This file has been modified by Loongson Technology in 2015. These 1.8 -# modifications are Copyright (c) 2015 Loongson Technology, and are made 1.9 +# This file has been modified by Loongson Technology in 2018. These 1.10 +# modifications are Copyright (c) 2018 Loongson Technology, and are made 1.11 # available on the same license terms set forth above. 1.12 # 1.13 1.14 @@ -115,6 +115,12 @@ 1.15 # This is VERY important! The version define must only be supplied to vm_version.o 1.16 # If not, ccache will not re-use the cache at all, since the version string might contain 1.17 # a time and date. 1.18 +ifdef LOONGSON_RUNTIME_NAME 1.19 + LOONGSON_VM_INFO = -DLOONGSON_RUNTIME_NAME="\"$(LOONGSON_RUNTIME_NAME)\"" 1.20 +else 1.21 + LOONGSON_VM_INFO = -DLOONGSON_RUNTIME_NAME="\"\"" 1.22 +endif 1.23 +CXXFLAGS/vmError.o += ${LOONGSON_VM_INFO} 1.24 CXXFLAGS/vm_version.o += ${JRE_VERSION} 1.25 1.26 CXXFLAGS/BYFILE = $(CXXFLAGS/$@)