Changeset 98128 in vbox for trunk/Config.kmk
- Timestamp:
- Jan 19, 2023 2:02:24 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r98127 r98128 6082 6082 # -wd4996: deprecated / insecure. 6083 6083 # 6084 TEMPLATE_VB OXR3EXE= VBox Ring 3 Exe6085 TEMPLATE_VB OXR3EXE_ASTOOL := $(VBOX_ASTOOL)6086 TEMPLATE_VB OXR3EXE_ASFLAGS.x86 = $(VBOX_ASFLAGS32)6087 TEMPLATE_VB OXR3EXE_ASFLAGS.sparc32 = $(VBOX_ASFLAGS32)6088 TEMPLATE_VB OXR3EXE_ASFLAGS.amd64 = $(VBOX_ASFLAGS64)6089 TEMPLATE_VB OXR3EXE_ASFLAGS.arm64 = $(VBOX_ASFLAGS64)6090 TEMPLATE_VB OXR3EXE_ASFLAGS.sparc64 = $(VBOX_ASFLAGS64)6091 TEMPLATE_VB OXR3EXE_DEFS = IN_RING3 $(VBOX_GC_ARCH_BITS_DEFS)6092 TEMPLATE_VB OXR3EXE_DEFS.x86 = HC_ARCH_BITS=326093 TEMPLATE_VB OXR3EXE_DEFS.arm32 = HC_ARCH_BITS=326094 TEMPLATE_VB OXR3EXE_DEFS.sparc32 = HC_ARCH_BITS=326095 TEMPLATE_VB OXR3EXE_DEFS.amd64 = HC_ARCH_BITS=646096 TEMPLATE_VB OXR3EXE_DEFS.arm64 = HC_ARCH_BITS=646097 TEMPLATE_VB OXR3EXE_DEFS.sparc64 = HC_ARCH_BITS=646098 TEMPLATE_VB OXR3EXE_DEFS.win = _CRT_SECURE_NO_DEPRECATE6099 TEMPLATE_VB OXR3EXE_USES = dtrace6084 TEMPLATE_VBoxR3Exe = VBox Ring 3 Exe 6085 TEMPLATE_VBoxR3Exe_ASTOOL := $(VBOX_ASTOOL) 6086 TEMPLATE_VBoxR3Exe_ASFLAGS.x86 = $(VBOX_ASFLAGS32) 6087 TEMPLATE_VBoxR3Exe_ASFLAGS.sparc32 = $(VBOX_ASFLAGS32) 6088 TEMPLATE_VBoxR3Exe_ASFLAGS.amd64 = $(VBOX_ASFLAGS64) 6089 TEMPLATE_VBoxR3Exe_ASFLAGS.arm64 = $(VBOX_ASFLAGS64) 6090 TEMPLATE_VBoxR3Exe_ASFLAGS.sparc64 = $(VBOX_ASFLAGS64) 6091 TEMPLATE_VBoxR3Exe_DEFS = IN_RING3 $(VBOX_GC_ARCH_BITS_DEFS) 6092 TEMPLATE_VBoxR3Exe_DEFS.x86 = HC_ARCH_BITS=32 6093 TEMPLATE_VBoxR3Exe_DEFS.arm32 = HC_ARCH_BITS=32 6094 TEMPLATE_VBoxR3Exe_DEFS.sparc32 = HC_ARCH_BITS=32 6095 TEMPLATE_VBoxR3Exe_DEFS.amd64 = HC_ARCH_BITS=64 6096 TEMPLATE_VBoxR3Exe_DEFS.arm64 = HC_ARCH_BITS=64 6097 TEMPLATE_VBoxR3Exe_DEFS.sparc64 = HC_ARCH_BITS=64 6098 TEMPLATE_VBoxR3Exe_DEFS.win = _CRT_SECURE_NO_DEPRECATE 6099 TEMPLATE_VBoxR3Exe_USES = dtrace 6100 6100 if defined(VBOX_WITH_DTRACE_R3) && defined(VBOX_WITH_NATIVE_DTRACE) 6101 TEMPLATE_VB OXR3EXE_DTRACETOOL = DTraceAndVBoxTpG6102 TEMPLATE_VB OXR3EXE_DTRACE_OBJ_FLAGS = -C6103 TEMPLATE_VB OXR3EXE_DTRACE_HDR_FLAGS = -C6104 TEMPLATE_VB OXR3EXE_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3 VBOX_WITH_NATIVE_DTRACE6101 TEMPLATE_VBoxR3Exe_DTRACETOOL = DTraceAndVBoxTpG 6102 TEMPLATE_VBoxR3Exe_DTRACE_OBJ_FLAGS = -C 6103 TEMPLATE_VBoxR3Exe_DTRACE_HDR_FLAGS = -C 6104 TEMPLATE_VBoxR3Exe_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3 VBOX_WITH_NATIVE_DTRACE 6105 6105 else 6106 TEMPLATE_VB OXR3EXE_DTRACE_HDR_FLAGS = --ring-3-context6107 TEMPLATE_VB OXR3EXE_DTRACE_OBJ_FLAGS = --ring-3-context --pic --probe-fn-imported --probe-fn-name "SUPTracerFireProbe"6106 TEMPLATE_VBoxR3Exe_DTRACE_HDR_FLAGS = --ring-3-context 6107 TEMPLATE_VBoxR3Exe_DTRACE_OBJ_FLAGS = --ring-3-context --pic --probe-fn-imported --probe-fn-name "SUPTracerFireProbe" 6108 6108 if defined(VBOX_WITH_DTRACE_R3) 6109 TEMPLATE_VB OXR3EXE_DTRACETOOL = VBoxTpG6110 TEMPLATE_VB OXR3EXE_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R36109 TEMPLATE_VBoxR3Exe_DTRACETOOL = VBoxTpG 6110 TEMPLATE_VBoxR3Exe_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R3 6111 6111 else 6112 TEMPLATE_VB OXR3EXE_DTRACETOOL = VBoxTpG-Disabled6113 endif 6114 endif 6115 TEMPLATE_VB OXR3EXE_LIBS.kprofile = $(LIB_KPROFILE)6112 TEMPLATE_VBoxR3Exe_DTRACETOOL = VBoxTpG-Disabled 6113 endif 6114 endif 6115 TEMPLATE_VBoxR3Exe_LIBS.kprofile = $(LIB_KPROFILE) 6116 6116 ifeq ($(KBUILD_TARGET),win) 6117 # TEMPLATE_VB OXR3EXE_TOOL = $(VBOX_VCC_TOOL)6118 TEMPLATE_VB OXR3EXE_TOOL.win.x86 = $(VBOX_VCC_TOOL_STEM)X866119 TEMPLATE_VB OXR3EXE_TOOL.win.amd64 = $(VBOX_VCC_TOOL_STEM)AMD646120 TEMPLATE_VB OXR3EXE_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000)6117 # TEMPLATE_VBoxR3Exe_TOOL = $(VBOX_VCC_TOOL) 6118 TEMPLATE_VBoxR3Exe_TOOL.win.x86 = $(VBOX_VCC_TOOL_STEM)X86 6119 TEMPLATE_VBoxR3Exe_TOOL.win.amd64 = $(VBOX_VCC_TOOL_STEM)AMD64 6120 TEMPLATE_VBoxR3Exe_RCDEFS = VBOX_SVN_REV=$(VBOX_SVN_REV) VBOX_SVN_REV_MOD_5K=$(expr $(VBOX_SVN_REV) % 50000) 6121 6121 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 6122 TEMPLATE_VB OXR3EXE_SDKS = ReorderCompilerIncs WINSDK10-UCRT $(VBOX_WINPSDK)6122 TEMPLATE_VBoxR3Exe_SDKS = ReorderCompilerIncs WINSDK10-UCRT $(VBOX_WINPSDK) 6123 6123 else 6124 TEMPLATE_VB OXR3EXE_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK)6125 endif 6126 TEMPLATE_VB OXR3EXE_CXXFLAGS = -Zi -Zl -GR- -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) \6124 TEMPLATE_VBoxR3Exe_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) 6125 endif 6126 TEMPLATE_VBoxR3Exe_CXXFLAGS = -Zi -Zl -GR- -EHsc -GF -MD$(VBOX_VCC_CRT_TYPE) -Zc:wchar_t- $(VBOX_VCC_OPT) $(VBOX_VCC_FP) \ 6127 6127 -Gy $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS) $(VBOX_VCC_std) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR) 6128 6128 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" 6129 TEMPLATE_VB OXR3EXE_CXXFLAGS += -Gw6129 TEMPLATE_VBoxR3Exe_CXXFLAGS += -Gw 6130 6130 endif 6131 6131 ifdef VBOX_WITH_MSC_ANALYZE_THIS 6132 TEMPLATE_VB OXR3EXE_CXXFLAGS += /analyze6132 TEMPLATE_VBoxR3Exe_CXXFLAGS += /analyze 6133 6133 endif 6134 6134 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # Don't waste space on x86/amd64-on-arm emulation optimizations. 6135 TEMPLATE_VB OXR3EXE_CXXFLAGS += /volatileMetadata-6136 endif 6137 TEMPLATE_VB OXR3EXE_CXXFLAGS.debug = -RTCsu6138 TEMPLATE_VB OXR3EXE_CXXFLAGS.dbgopt = $(NO_SUCH_VARIABLE)6139 TEMPLATE_VB OXR3EXE_CXXFLAGS.kprofile = -Gh -GH6140 TEMPLATE_VB OXR3EXE_CFLAGS = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBOXR3EXE_CXXFLAGS))6141 TEMPLATE_VB OXR3EXE_CFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)6142 TEMPLATE_VB OXR3EXE_CFLAGS.dbgopt = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.dbgopt)6143 TEMPLATE_VB OXR3EXE_CFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile)6144 TEMPLATE_VB OXR3EXE_PCHFLAGS = $(TEMPLATE_VBOXR3EXE_CXXFLAGS)6145 TEMPLATE_VB OXR3EXE_PCHFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)6146 TEMPLATE_VB OXR3EXE_PCHFLAGS.dbgopt = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.dbgopt)6147 TEMPLATE_VB OXR3EXE_PCHFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile)6148 TEMPLATE_VB OXR3EXE_LDFLAGS = -Ignore:4197 \6135 TEMPLATE_VBoxR3Exe_CXXFLAGS += /volatileMetadata- 6136 endif 6137 TEMPLATE_VBoxR3Exe_CXXFLAGS.debug = -RTCsu 6138 TEMPLATE_VBoxR3Exe_CXXFLAGS.dbgopt = $(NO_SUCH_VARIABLE) 6139 TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile = -Gh -GH 6140 TEMPLATE_VBoxR3Exe_CFLAGS = $(filter-out $(VBOX_VCC_std),$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) 6141 TEMPLATE_VBoxR3Exe_CFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug) 6142 TEMPLATE_VBoxR3Exe_CFLAGS.dbgopt = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.dbgopt) 6143 TEMPLATE_VBoxR3Exe_CFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile) 6144 TEMPLATE_VBoxR3Exe_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) 6145 TEMPLATE_VBoxR3Exe_PCHFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug) 6146 TEMPLATE_VBoxR3Exe_PCHFLAGS.dbgopt = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.dbgopt) 6147 TEMPLATE_VBoxR3Exe_PCHFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile) 6148 TEMPLATE_VBoxR3Exe_LDFLAGS = -Ignore:4197 \ 6149 6149 /NOD /INCREMENTAL:NO /MAPINFO:EXPORTS /LargeAddressAware /DynamicBase /NxCompat /Release /Debug /Opt:Ref /Opt:Icf \ 6150 6150 $(VBOX_VCC_LD_GUARD_CF) $(VBOX_VCC_SANITIZER_LDFLAGS) \ … … 6158 6158 /DISALLOWLIB:msvcprt$(VBOX_VCC_CRT_TYPE_N).lib 6159 6159 ifdef VBOX_WITH_DTRACE_R3 6160 TEMPLATE_VB OXR3EXE_LDFLAGS += -Merge:VTGPrLc.Data=VTGPrLc.Begin -Merge:VTGPrLc.End=VTGPrLc.Begin -Merge:VTGPrLc.Begin=VTGObj6160 TEMPLATE_VBoxR3Exe_LDFLAGS += -Merge:VTGPrLc.Data=VTGPrLc.Begin -Merge:VTGPrLc.End=VTGPrLc.Begin -Merge:VTGPrLc.Begin=VTGObj 6161 6161 endif 6162 6162 if defined(VBOX_SIGNING_MODE) && defined(VBOX_WITH_HARDENING) 6163 TEMPLATE_VB OXR3EXE_LDFLAGS += -IntegrityCheck6164 endif 6165 TEMPLATE_VB OXR3EXE_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA)6163 TEMPLATE_VBoxR3Exe_LDFLAGS += -IntegrityCheck 6164 endif 6165 TEMPLATE_VBoxR3Exe_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA) 6166 6166 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" # Don't waste space on x86/amd64-on-arm emulation optimizations. 6167 TEMPLATE_VB OXR3EXE_LDFLAGS += -EmitVolatileMetadata:NO6167 TEMPLATE_VBoxR3Exe_LDFLAGS += -EmitVolatileMetadata:NO 6168 6168 endif 6169 6169 6170 6170 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 6171 TEMPLATE_VB OXR3EXE_LIBS.x86 = \6172 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \6173 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \6174 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \6175 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib6176 TEMPLATE_VB OXR3EXE_LIBS.amd64 = \6177 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \6178 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \6179 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \6180 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/oldnames.lib6171 TEMPLATE_VBoxR3Exe_LIBS.x86 = \ 6172 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6173 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6174 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6175 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6176 TEMPLATE_VBoxR3Exe_LIBS.amd64 = \ 6177 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6178 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6179 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6180 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/oldnames.lib 6181 6181 ifeq ($(KBUILD_TYPE),asan) 6182 TEMPLATE_VB OXR3EXE_LIBS.x86 += \6183 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic-i386.lib \6184 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic_runtime_thunk-i386.lib6185 TEMPLATE_VB OXR3EXE_LIBS.amd64 += \6186 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic-x86_64.lib \6187 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib6182 TEMPLATE_VBoxR3Exe_LIBS.x86 += \ 6183 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic-i386.lib \ 6184 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic_runtime_thunk-i386.lib 6185 TEMPLATE_VBoxR3Exe_LIBS.amd64 += \ 6186 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic-x86_64.lib \ 6187 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib 6188 6188 endif 6189 6189 else 6190 TEMPLATE_VB OXR3EXE_LIBS.x86 = \6191 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \6192 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \6193 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib6194 TEMPLATE_VB OXR3EXE_LIBS.amd64 = \6195 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \6196 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \6197 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.amd64)_LIB)/oldnames.lib6198 endif 6199 6200 TEMPLATE_VB OXR3EXE_POST_CMDS = $(VBOX_UTF8_MANIFEST_CMDS)$(NLTAB)$(VBOX_SIGN_IMAGE_CMDS)6201 TEMPLATE_VB OXR3EXE_ORDERDEPS = $(VBOX_SIGN_IMAGE_CMDS_ORDERDEPS)6190 TEMPLATE_VBoxR3Exe_LIBS.x86 = \ 6191 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6192 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6193 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6194 TEMPLATE_VBoxR3Exe_LIBS.amd64 = \ 6195 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6196 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6197 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/oldnames.lib 6198 endif 6199 6200 TEMPLATE_VBoxR3Exe_POST_CMDS = $(VBOX_UTF8_MANIFEST_CMDS)$(NLTAB)$(VBOX_SIGN_IMAGE_CMDS) 6201 TEMPLATE_VBoxR3Exe_ORDERDEPS = $(VBOX_SIGN_IMAGE_CMDS_ORDERDEPS) 6202 6202 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" 6203 TEMPLATE_VB OXR3EXE_POST_CMDS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB)$(TEMPLATE_VBOXR3EXE_POST_CMDS))6204 TEMPLATE_VB OXR3EXE_LNK_DEPS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION))6205 TEMPLATE_VB OXR3EXE_LDFLAGS.win.x86 = \6203 TEMPLATE_VBoxR3Exe_POST_CMDS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)$$(NLTAB)$(TEMPLATE_VBoxR3Exe_POST_CMDS)) 6204 TEMPLATE_VBoxR3Exe_LNK_DEPS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION)) 6205 TEMPLATE_VBoxR3Exe_LDFLAGS.win.x86 = \ 6206 6206 -Include:_vcc100_kernel32_fakes_cpp \ 6207 6207 -Include:_vcc100_kernel32_fakes_asm 6208 TEMPLATE_VB OXR3EXE_LIBS.win.x86 = \6208 TEMPLATE_VBoxR3Exe_LIBS.win.x86 = \ 6209 6209 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) 6210 TEMPLATE_VB OXR3EXE_LIBS.x86 = \6211 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib \6212 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \6213 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib6210 TEMPLATE_VBoxR3Exe_LIBS.x86 = \ 6211 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib \ 6212 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6213 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 6214 6214 endif 6215 6215 6216 6216 else # the gcc guys 6217 TEMPLATE_VB OXR3EXE_TOOL = $(VBOX_GCC_TOOL)6217 TEMPLATE_VBoxR3Exe_TOOL = $(VBOX_GCC_TOOL) 6218 6218 if $(VBOX_GCC_VERSION_CC) < 30400 6219 TEMPLATE_VB OXR3EXE_DEFS += RT_WITHOUT_PRAGMA_ONCE6220 endif 6221 TEMPLATE_VB OXR3EXE_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) \6219 TEMPLATE_VBoxR3Exe_DEFS += RT_WITHOUT_PRAGMA_ONCE 6220 endif 6221 TEMPLATE_VBoxR3Exe_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) \ 6222 6222 $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_std) $(VBOX_GCC_fvisibility-inlines-hidden) \ 6223 6223 $(VBOX_GCC_IPRT_FMT_CHECK) $(VBOX_GCC_SANITIZER_FLAGS) 6224 6224 ifdef VBOX_WITH_NO_GCC_WARNING_POLICY 6225 TEMPLATE_VB OXR3EXE_CXXFLAGS += $(VBOX_GCC_WERR)6226 endif 6227 TEMPLATE_VB OXR3EXE_CXXFLAGS.x86 = -m326228 TEMPLATE_VB OXR3EXE_CXXFLAGS.amd64 = -m646229 TEMPLATE_VB OXR3EXE_CXXFLAGS.sparc32 = -m326230 TEMPLATE_VB OXR3EXE_CXXFLAGS.sparc64 = -m646231 TEMPLATE_VB OXR3EXE_CXXFLAGS.kprofile = -finstrument-functions6232 TEMPLATE_VB OXR3EXE_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) \6225 TEMPLATE_VBoxR3Exe_CXXFLAGS += $(VBOX_GCC_WERR) 6226 endif 6227 TEMPLATE_VBoxR3Exe_CXXFLAGS.x86 = -m32 6228 TEMPLATE_VBoxR3Exe_CXXFLAGS.amd64 = -m64 6229 TEMPLATE_VBoxR3Exe_CXXFLAGS.sparc32 = -m32 6230 TEMPLATE_VBoxR3Exe_CXXFLAGS.sparc64 = -m64 6231 TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile = -finstrument-functions 6232 TEMPLATE_VBoxR3Exe_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_OPT) \ 6233 6233 $(VBOX_GCC_FP) -fno-strict-aliasing $(VBOX_GCC_fvisibility-hidden) $(VBOX_GCC_IPRT_FMT_CHECK) 6234 6234 ifdef VBOX_WITH_NO_GCC_WARNING_POLICY 6235 TEMPLATE_VB OXR3EXE_CFLAGS += $(VBOX_GCC_WERR)6236 endif 6237 TEMPLATE_VB OXR3EXE_CFLAGS.x86 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.x86)6238 TEMPLATE_VB OXR3EXE_CFLAGS.amd64 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64)6239 TEMPLATE_VB OXR3EXE_CFLAGS.sparc32 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.sparc32)6240 TEMPLATE_VB OXR3EXE_CFLAGS.sparc64 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.sparc64)6241 TEMPLATE_VB OXR3EXE_CFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)6242 TEMPLATE_VB OXR3EXE_CFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile)6243 TEMPLATE_VB OXR3EXE_OBJCFLAGS = $(TEMPLATE_VBOXR3EXE_CFLAGS)6244 TEMPLATE_VB OXR3EXE_OBJCFLAGS.x86 = $(TEMPLATE_VBOXR3EXE_CFLAGS.x86)6245 TEMPLATE_VB OXR3EXE_OBJCFLAGS.amd64 = $(TEMPLATE_VBOXR3EXE_CFLAGS.amd64)6246 TEMPLATE_VB OXR3EXE_OBJCFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CFLAGS.debug)6247 TEMPLATE_VB OXR3EXE_OBJCFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CFLAGS.kprofile)6248 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS = $(TEMPLATE_VBOXR3EXE_CXXFLAGS)6249 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS.x86 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.x86)6250 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS.amd64 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64)6251 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)6252 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS.kprofile= $(TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile)6253 TEMPLATE_VB OXR3EXE_PCHFLAGS = $(TEMPLATE_VBOXR3EXE_CXXFLAGS)6254 TEMPLATE_VB OXR3EXE_PCHFLAGS.x86 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.x86)6255 TEMPLATE_VB OXR3EXE_PCHFLAGS.amd64 = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.amd64)6256 TEMPLATE_VB OXR3EXE_PCHFLAGS.debug = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.debug)6257 TEMPLATE_VB OXR3EXE_PCHFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.kprofile)6258 TEMPLATE_VB OXR3EXE_LDFLAGS = $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS)6259 TEMPLATE_VB OXR3EXE_LDFLAGS.x86 = -m326260 TEMPLATE_VB OXR3EXE_LDFLAGS.amd64 = -m646261 TEMPLATE_VB OXR3EXE_LDFLAGS.sparc32 = -m326262 TEMPLATE_VB OXR3EXE_LDFLAGS.sparc64 = -m646263 TEMPLATE_VB OXR3EXE_LDFLAGS.linux = -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed)6264 TEMPLATE_VB OXR3EXE_LDFLAGS.solaris = -Wl,-z,ignore # same as VBOX_LD_as_needed6235 TEMPLATE_VBoxR3Exe_CFLAGS += $(VBOX_GCC_WERR) 6236 endif 6237 TEMPLATE_VBoxR3Exe_CFLAGS.x86 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.x86) 6238 TEMPLATE_VBoxR3Exe_CFLAGS.amd64 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.amd64) 6239 TEMPLATE_VBoxR3Exe_CFLAGS.sparc32 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.sparc32) 6240 TEMPLATE_VBoxR3Exe_CFLAGS.sparc64 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.sparc64) 6241 TEMPLATE_VBoxR3Exe_CFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug) 6242 TEMPLATE_VBoxR3Exe_CFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile) 6243 TEMPLATE_VBoxR3Exe_OBJCFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) 6244 TEMPLATE_VBoxR3Exe_OBJCFLAGS.x86 = $(TEMPLATE_VBoxR3Exe_CFLAGS.x86) 6245 TEMPLATE_VBoxR3Exe_OBJCFLAGS.amd64 = $(TEMPLATE_VBoxR3Exe_CFLAGS.amd64) 6246 TEMPLATE_VBoxR3Exe_OBJCFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CFLAGS.debug) 6247 TEMPLATE_VBoxR3Exe_OBJCFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CFLAGS.kprofile) 6248 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) 6249 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS.x86 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.x86) 6250 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS.amd64 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.amd64) 6251 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug) 6252 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS.kprofile= $(TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile) 6253 TEMPLATE_VBoxR3Exe_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) 6254 TEMPLATE_VBoxR3Exe_PCHFLAGS.x86 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.x86) 6255 TEMPLATE_VBoxR3Exe_PCHFLAGS.amd64 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.amd64) 6256 TEMPLATE_VBoxR3Exe_PCHFLAGS.debug = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug) 6257 TEMPLATE_VBoxR3Exe_PCHFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile) 6258 TEMPLATE_VBoxR3Exe_LDFLAGS = $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS) 6259 TEMPLATE_VBoxR3Exe_LDFLAGS.x86 = -m32 6260 TEMPLATE_VBoxR3Exe_LDFLAGS.amd64 = -m64 6261 TEMPLATE_VBoxR3Exe_LDFLAGS.sparc32 = -m32 6262 TEMPLATE_VBoxR3Exe_LDFLAGS.sparc64 = -m64 6263 TEMPLATE_VBoxR3Exe_LDFLAGS.linux = -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed) 6264 TEMPLATE_VBoxR3Exe_LDFLAGS.solaris = -Wl,-z,ignore # same as VBOX_LD_as_needed 6265 6265 6266 6266 ifeq ($(KBUILD_TARGET),linux) 6267 TEMPLATE_VB OXR3EXE_LIBS = pthread m rt dl6267 TEMPLATE_VBoxR3Exe_LIBS = pthread m rt dl 6268 6268 else ifeq ($(KBUILD_TARGET),os2) 6269 TEMPLATE_VB OXR3EXE_TOOL = GXX3OMF6270 TEMPLATE_VB OXR3EXE_LIBS = socket iconv6269 TEMPLATE_VBoxR3Exe_TOOL = GXX3OMF 6270 TEMPLATE_VBoxR3Exe_LIBS = socket iconv 6271 6271 else ifeq ($(KBUILD_TARGET),darwin) 6272 TEMPLATE_VB OXR3EXE_TOOL = $(VBOX_GCC_TOOL)6273 TEMPLATE_VB OXR3EXE_LIBS =6274 TEMPLATE_VB OXR3EXE_DEFS += LIBICONV_PLUG # Avoid 3rd party libiconv (from macports).6275 TEMPLATE_VB OXR3EXE_SDKS.darwin = $(VBOX_DARWIN_DEF_SDK_SDKS)6276 TEMPLATE_VB OXR3EXE_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_DEFS)6277 TEMPLATE_VB OXR3EXE_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -fno-common6278 TEMPLATE_VB OXR3EXE_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)6279 TEMPLATE_VB OXR3EXE_PCHFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS)6280 TEMPLATE_VB OXR3EXE_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS)6281 TEMPLATE_VB OXR3EXE_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS)6282 TEMPLATE_VB OXR3EXE_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -Wl,-headerpad_max_install_names6283 TEMPLATE_VB OXR3EXE_LDFLAGS.darwin.x86 = -read_only_relocs suppress6284 TEMPLATE_VB OXR3EXE_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS)6272 TEMPLATE_VBoxR3Exe_TOOL = $(VBOX_GCC_TOOL) 6273 TEMPLATE_VBoxR3Exe_LIBS = 6274 TEMPLATE_VBoxR3Exe_DEFS += LIBICONV_PLUG # Avoid 3rd party libiconv (from macports). 6275 TEMPLATE_VBoxR3Exe_SDKS.darwin = $(VBOX_DARWIN_DEF_SDK_SDKS) 6276 TEMPLATE_VBoxR3Exe_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_DEFS) 6277 TEMPLATE_VBoxR3Exe_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CFLAGS) -fno-common 6278 TEMPLATE_VBoxR3Exe_CXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) 6279 TEMPLATE_VBoxR3Exe_PCHFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_CXXFLAGS) 6280 TEMPLATE_VBoxR3Exe_OBJCFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCFLAGS) 6281 TEMPLATE_VBoxR3Exe_OBJCXXFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) 6282 TEMPLATE_VBoxR3Exe_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -Wl,-headerpad_max_install_names 6283 TEMPLATE_VBoxR3Exe_LDFLAGS.darwin.x86 = -read_only_relocs suppress 6284 TEMPLATE_VBoxR3Exe_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS) 6285 6285 ifdef VBOX_WITH_DTRACE_R3 6286 TEMPLATE_VB OXR3EXE_CXXFLAGS := $(filter-out -pedantic,$(TEMPLATE_VBOXR3EXE_CXXFLAGS)) -fdollars-in-identifiers # annoying gcc option precedence.6286 TEMPLATE_VBoxR3Exe_CXXFLAGS := $(filter-out -pedantic,$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) -fdollars-in-identifiers # annoying gcc option precedence. 6287 6287 endif 6288 6288 else ifeq ($(KBUILD_TARGET),haiku) 6289 TEMPLATE_VB OXR3EXE_TOOL = GXX36290 TEMPLATE_VB OXR3EXE_POST_CMDS = $(VBOX_HAIKU_XRES_SETVER_CMDS)6291 TEMPLATE_VB OXR3EXE_LIBS = network iconv stdc++ supc++6292 TEMPLATE_VB OXR3EXE_LIBPATH += \6289 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6290 TEMPLATE_VBoxR3Exe_POST_CMDS = $(VBOX_HAIKU_XRES_SETVER_CMDS) 6291 TEMPLATE_VBoxR3Exe_LIBS = network iconv stdc++ supc++ 6292 TEMPLATE_VBoxR3Exe_LIBPATH += \ 6293 6293 /boot/common/lib 6294 6294 # Haiku uses PIC by default... 6295 TEMPLATE_VB OXR3EXE_CFLAGS += -fno-pic6296 TEMPLATE_VB OXR3EXE_CXXFLAGS += -fno-pic6297 TEMPLATE_VB OXR3EXE_LDFLAGS += -fno-pic6295 TEMPLATE_VBoxR3Exe_CFLAGS += -fno-pic 6296 TEMPLATE_VBoxR3Exe_CXXFLAGS += -fno-pic 6297 TEMPLATE_VBoxR3Exe_LDFLAGS += -fno-pic 6298 6298 else if1of ($(KBUILD_TARGET), freebsd openbsd) 6299 TEMPLATE_VB OXR3EXE_TOOL = GXX36300 TEMPLATE_VB OXR3EXE_LIBS = pthread6301 TEMPLATE_VB OXR3EXE_INCS += \6299 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6300 TEMPLATE_VBoxR3Exe_LIBS = pthread 6301 TEMPLATE_VBoxR3Exe_INCS += \ 6302 6302 /usr/include \ 6303 6303 /usr/X11R6/include \ 6304 6304 /usr/local/include 6305 TEMPLATE_VB OXR3EXE_LIBPATH += \6305 TEMPLATE_VBoxR3Exe_LIBPATH += \ 6306 6306 /usr/lib \ 6307 6307 /usr/X11R6/lib \ 6308 6308 /usr/local/lib 6309 6309 else ifeq ($(KBUILD_TARGET),netbsd) 6310 TEMPLATE_VB OXR3EXE_TOOL = GXX36311 TEMPLATE_VB OXR3EXE_LIBS = pthread6312 TEMPLATE_VB OXR3EXE_INCS += \6310 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6311 TEMPLATE_VBoxR3Exe_LIBS = pthread 6312 TEMPLATE_VBoxR3Exe_INCS += \ 6313 6313 /usr/include \ 6314 6314 /usr/X11R7/include 6315 TEMPLATE_VB OXR3EXE_LIBPATH += \6315 TEMPLATE_VBoxR3Exe_LIBPATH += \ 6316 6316 /usr/lib \ 6317 6317 /usr/X11R7/lib 6318 6318 else ifeq ($(KBUILD_TARGET),solaris) 6319 TEMPLATE_VB OXR3EXE_TOOL = GXX3PLAIN6320 TEMPLATE_VB OXR3EXE_DEFS += LIBICONV_PLUG _REENTRANT # Avoid the GNU libiconv, for now at least.6319 TEMPLATE_VBoxR3Exe_TOOL = GXX3PLAIN 6320 TEMPLATE_VBoxR3Exe_DEFS += LIBICONV_PLUG _REENTRANT # Avoid the GNU libiconv, for now at least. 6321 6321 if $(VBOX_GCC_VERSION_CC) < 30500 6322 TEMPLATE_VB OXR3EXE_CFLAGS += -std=gnu996323 endif 6324 TEMPLATE_VB OXR3EXE_LIBS = rt socket6322 TEMPLATE_VBoxR3Exe_CFLAGS += -std=gnu99 6323 endif 6324 TEMPLATE_VBoxR3Exe_LIBS = rt socket 6325 6325 else 6326 6326 $(warning Warning: VBOX Build: Target $(KBUILD_TARGET) is not officially supported!) 6327 TEMPLATE_VB OXR3EXE_CXXFLAGS.profile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.release)6328 TEMPLATE_VB OXR3EXE_CXXFLAGS.kprofile = $(TEMPLATE_VBOXR3EXE_CXXFLAGS.krelease)6327 TEMPLATE_VBoxR3Exe_CXXFLAGS.profile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.release) 6328 TEMPLATE_VBoxR3Exe_CXXFLAGS.kprofile = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.krelease) 6329 6329 endif 6330 6330 ifdef VBOX_WITH_RUNPATH 6331 TEMPLATE_VB OXR3EXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)'6331 TEMPLATE_VBoxR3Exe_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' 6332 6332 else ifdef VBOX_WITH_RELATIVE_RUNPATH 6333 TEMPLATE_VB OXR3EXE_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)'6333 TEMPLATE_VBoxR3Exe_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)' 6334 6334 endif 6335 6335 ifdef VBOX_WITH_ORIGIN 6336 TEMPLATE_VB OXR3EXE_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT)6336 TEMPLATE_VBoxR3Exe_LDFLAGS.linux += $(VBOX_GCC_ORIGIN_OPT) 6337 6337 endif 6338 6338 endif … … 6340 6340 # 6341 6341 # Template for building R3 shared objects / DLLs. 6342 # This is mostly identical to the VB OXR3EXEtemplate. (Avoid PIC if possible!)6342 # This is mostly identical to the VBoxR3Exe template. (Avoid PIC if possible!) 6343 6343 # - 6344 6344 TEMPLATE_VBOXR3 = VBox Ring 3 SO/DLLs 6345 TEMPLATE_VBOXR3_EXTENDS = VB OXR3EXE6346 TEMPLATE_VBOXR3_DEFS.darwin = $(TEMPLATE_VB OXR3EXE_DEFS.darwin) PIC6347 TEMPLATE_VBOXR3_LDFLAGS.darwin = $(TEMPLATE_VB OXR3EXE_LDFLAGS.darwin) \6345 TEMPLATE_VBOXR3_EXTENDS = VBoxR3Exe 6346 TEMPLATE_VBOXR3_DEFS.darwin = $(TEMPLATE_VBoxR3Exe_DEFS.darwin) PIC 6347 TEMPLATE_VBOXR3_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Exe_LDFLAGS.darwin) \ 6348 6348 -current_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 6349 6349 -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) 6350 6350 ifn1of ($(KBUILD_TARGET), darwin win os2) 6351 TEMPLATE_VBOXR3_DEFS = $(TEMPLATE_VB OXR3EXE_DEFS) PIC6352 TEMPLATE_VBOXR3_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) -fPIC6353 TEMPLATE_VBOXR3_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) -fPIC6354 TEMPLATE_VBOXR3_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) -fPIC6355 TEMPLATE_VBOXR3_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS) -fPIC6351 TEMPLATE_VBOXR3_DEFS = $(TEMPLATE_VBoxR3Exe_DEFS) PIC 6352 TEMPLATE_VBOXR3_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) -fPIC 6353 TEMPLATE_VBOXR3_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -fPIC 6354 TEMPLATE_VBOXR3_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) -fPIC 6355 TEMPLATE_VBOXR3_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) -fPIC 6356 6356 endif 6357 6357 ifeq ($(KBUILD_TARGET),haiku) 6358 6358 # Haiku uses PIC by default... 6359 TEMPLATE_VBOXR3_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) -fno-pic6360 TEMPLATE_VBOXR3_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) -fno-pic6361 TEMPLATE_VBOXR3_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) -fno-pic6362 TEMPLATE_VBOXR3_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS) -fno-pic6359 TEMPLATE_VBOXR3_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) -fno-pic 6360 TEMPLATE_VBOXR3_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -fno-pic 6361 TEMPLATE_VBOXR3_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) -fno-pic 6362 TEMPLATE_VBOXR3_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) -fno-pic 6363 6363 endif 6364 6364 … … 6394 6394 TEMPLATE_VBoxR3DllNoPic_EXTENDS = VBOXR3 6395 6395 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.x86 freebsd.x86) 6396 TEMPLATE_VBoxR3DllNoPic_DEFS = $(TEMPLATE_VB OXR3EXE_DEFS)6397 TEMPLATE_VBoxR3DllNoPic_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) $(VBOX_GCC_WERR)6398 TEMPLATE_VBoxR3DllNoPic_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) $(VBOX_GCC_WERR)6399 TEMPLATE_VBoxR3DllNoPic_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) $(VBOX_GCC_WERR)6400 TEMPLATE_VBoxR3DllNoPic_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS)6396 TEMPLATE_VBoxR3DllNoPic_DEFS = $(TEMPLATE_VBoxR3Exe_DEFS) 6397 TEMPLATE_VBoxR3DllNoPic_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) $(VBOX_GCC_WERR) 6398 TEMPLATE_VBoxR3DllNoPic_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) $(VBOX_GCC_WERR) 6399 TEMPLATE_VBoxR3DllNoPic_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) $(VBOX_GCC_WERR) 6400 TEMPLATE_VBoxR3DllNoPic_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6401 6401 else ifeq ($(KBUILD_TARGET),win) 6402 6402 TEMPLATE_VBoxR3DllNoPic_CFLAGS = $(filter-out -W3 -wd%,$(TEMPLATE_VBOXR3_CFLAGS)) $(VBOX_VCC_WARN_ALL) $(VBOX_VCC_WERR) … … 6430 6430 TEMPLATE_VBoxR3DllWarnNoPic_EXTENDS = VBOXR3 6431 6431 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), linux.x86 freebsd.x86) 6432 TEMPLATE_VBoxR3DllWarnNoPic_DEFS = $(TEMPLATE_VB OXR3EXE_DEFS)6433 TEMPLATE_VBoxR3DllWarnNoPic_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS)6434 TEMPLATE_VBoxR3DllWarnNoPic_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS)6435 TEMPLATE_VBoxR3DllWarnNoPic_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS)6436 TEMPLATE_VBoxR3DllWarnNoPic_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS)6432 TEMPLATE_VBoxR3DllWarnNoPic_DEFS = $(TEMPLATE_VBoxR3Exe_DEFS) 6433 TEMPLATE_VBoxR3DllWarnNoPic_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) 6434 TEMPLATE_VBoxR3DllWarnNoPic_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) 6435 TEMPLATE_VBoxR3DllWarnNoPic_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) 6436 TEMPLATE_VBoxR3DllWarnNoPic_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6437 6437 else ifeq ($(KBUILD_TARGET),win) 6438 6438 TEMPLATE_VBoxR3DllWarnNoPic_CFLAGS.release = $(TEMPLATE_VBOXR3_CFLAGS.release) -GS- … … 6446 6446 # 6447 6447 TEMPLATE_VBOXR3STATIC = VBox Static Ring 3 EXE 6448 TEMPLATE_VBOXR3STATIC_EXTENDS = VB OXR3EXE6449 TEMPLATE_VBOXR3STATIC_DEFS = IN_RT_STATIC IN_RT_R3 IN_SUP_STATIC $(TEMPLATE_VB OXR3EXE_DEFS)6448 TEMPLATE_VBOXR3STATIC_EXTENDS = VBoxR3Exe 6449 TEMPLATE_VBOXR3STATIC_DEFS = IN_RT_STATIC IN_RT_R3 IN_SUP_STATIC $(TEMPLATE_VBoxR3Exe_DEFS) 6450 6450 ifdef VBOX_WITH_NOCRT_STATIC 6451 6451 TEMPLATE_VBOXR3STATIC_DEFS += IPRT_NO_CRT 6452 TEMPLATE_VBOXR3STATIC_INCS = $(PATH_ROOT)/include/iprt/nocrt $(TEMPLATE_VB OXR3EXE_INCS)6452 TEMPLATE_VBOXR3STATIC_INCS = $(PATH_ROOT)/include/iprt/nocrt $(TEMPLATE_VBoxR3Exe_INCS) 6453 6453 endif 6454 6454 ifeq ($(KBUILD_TARGET),win) 6455 6455 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 6456 6456 ifdef VBOX_WITH_NOCRT_STATIC 6457 TEMPLATE_VBOXR3STATIC_SDKS = $(subst WINSDK10-UCRT,,$(TEMPLATE_VB OXR3EXE_SDKS))6458 TEMPLATE_VBOXR3STATIC_SDKS.x86 = $(TEMPLATE_VB OXR3EXE_SDKS.x86) VBOX_WIN_INT64 ## @todo drop this asap. @bugref{10261}6457 TEMPLATE_VBOXR3STATIC_SDKS = $(subst WINSDK10-UCRT,,$(TEMPLATE_VBoxR3Exe_SDKS)) 6458 TEMPLATE_VBOXR3STATIC_SDKS.x86 = $(TEMPLATE_VBoxR3Exe_SDKS.x86) VBOX_WIN_INT64 ## @todo drop this asap. @bugref{10261} 6459 6459 else 6460 TEMPLATE_VBOXR3STATIC_SDKS = $(subst WINSDK10-UCRT, WINSDK10-UCRT-STATIC,$(TEMPLATE_VB OXR3EXE_SDKS))6460 TEMPLATE_VBOXR3STATIC_SDKS = $(subst WINSDK10-UCRT, WINSDK10-UCRT-STATIC,$(TEMPLATE_VBoxR3Exe_SDKS)) 6461 6461 endif 6462 6462 endif 6463 6463 ifdef VBOX_WITH_NOCRT_STATIC 6464 TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VB OXR3EXE_CFLAGS)) \6464 TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VBoxR3Exe_CFLAGS)) \ 6465 6465 -Zl -EHc-s- -Gy -GR- 6466 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VB OXR3EXE_CXXFLAGS)) \6466 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VBoxR3Exe_CXXFLAGS)) \ 6467 6467 -Zl -EHc-s- -Gy -GR- 6468 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VB OXR3EXE_PCHFLAGS)) \6468 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE) -EHsc -GR, $(TEMPLATE_VBoxR3Exe_PCHFLAGS)) \ 6469 6469 -Zl -EHc-s- -Gy -GR- 6470 6470 else 6471 TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VB OXR3EXE_CFLAGS)) \6471 TEMPLATE_VBOXR3STATIC_CFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Exe_CFLAGS)) \ 6472 6472 -MT$(VBOX_VCC_CRT_TYPE) -Gy 6473 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VB OXR3EXE_CXXFLAGS)) \6473 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Exe_CXXFLAGS)) \ 6474 6474 -MT$(VBOX_VCC_CRT_TYPE) -Gy 6475 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VB OXR3EXE_PCHFLAGS)) \6475 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Exe_PCHFLAGS)) \ 6476 6476 -MT$(VBOX_VCC_CRT_TYPE) -Gy 6477 6477 endif 6478 6478 6479 6479 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC120" # Do not use SSE so valkit stuff can run on NT4 w/o needing a separate runtime library. 6480 TEMPLATE_VBOXR3STATIC_CFLAGS.win.x86 = $(TEMPLATE_VB OXR3EXE_CFLAGS.win.86) /arch:IA326481 TEMPLATE_VBOXR3STATIC_CXXFLAGS.win.x86 = $(TEMPLATE_VB OXR3EXE_CXXFLAGS.win.86) /arch:IA326482 TEMPLATE_VBOXR3STATIC_PCHFLAGS.win.x86 = $(TEMPLATE_VB OXR3EXE_PCHFLAGS.win.86) /arch:IA326480 TEMPLATE_VBOXR3STATIC_CFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_CFLAGS.win.86) /arch:IA32 6481 TEMPLATE_VBOXR3STATIC_CXXFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_CXXFLAGS.win.86) /arch:IA32 6482 TEMPLATE_VBOXR3STATIC_PCHFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_PCHFLAGS.win.86) /arch:IA32 6483 6483 TEMPLATE_VBOXR3STATIC_CFLAGS += -Gw 6484 6484 TEMPLATE_VBOXR3STATIC_CXXFLAGS += -Gw … … 6489 6489 # .0000cfg normally merges into .idata, but the linker won't let us do so via /MERGE. Doesn't matter much, 6490 6490 # because .idata can be writable when targeting x86 (NT 3.1 fun) and we don't want .0000cfg to be writable. 6491 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS) /NODEFAULTLIB /Merge:.0000cfg=.rdata6491 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) /NODEFAULTLIB /Merge:.0000cfg=.rdata 6492 6492 else 6493 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out /DISALLOWLIB:libcmt$(VBOX_VCC_CRT_TYPE).lib /DISALLOWLIB:libcpmt$(VBOX_VCC_CRT_TYPE).lib, $(TEMPLATE_VB OXR3EXE_LDFLAGS))6493 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out /DISALLOWLIB:libcmt$(VBOX_VCC_CRT_TYPE).lib /DISALLOWLIB:libcpmt$(VBOX_VCC_CRT_TYPE).lib, $(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6494 6494 endif 6495 6495 TEMPLATE_VBOXR3STATIC_LDFLAGS += \ … … 6547 6547 ifn1of ($(KBUILD_TARGET), darwin linux solaris) 6548 6548 # The gcc guys sans darwin, linux and solaris (don't depend on statically compiled system libs there) 6549 TEMPLATE_VBOXR3STATIC_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) -static6550 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) -static6551 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) -static6552 TEMPLATE_VBOXR3STATIC_OBJCFLAGS = $(TEMPLATE_VB OXR3EXE_OBJCFLAGS) -static6553 TEMPLATE_VBOXR3STATIC_OBJCXXFLAGS = $(TEMPLATE_VB OXR3EXE_OBJCXXFLAGS) -static6554 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS) -static6549 TEMPLATE_VBOXR3STATIC_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) -static 6550 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -static 6551 TEMPLATE_VBOXR3STATIC_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) -static 6552 TEMPLATE_VBOXR3STATIC_OBJCFLAGS = $(TEMPLATE_VBoxR3Exe_OBJCFLAGS) -static 6553 TEMPLATE_VBOXR3STATIC_OBJCXXFLAGS = $(TEMPLATE_VBoxR3Exe_OBJCXXFLAGS) -static 6554 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) -static 6555 6555 else ifeq ($(KBUILD_TARGET),solaris) 6556 TEMPLATE_VBOXR3STATIC_LIBS = $(TEMPLATE_VB OXR3EXE_LIBS) nsl6557 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)',$(TEMPLATE_VB OXR3EXE_LDFLAGS))6556 TEMPLATE_VBOXR3STATIC_LIBS = $(TEMPLATE_VBoxR3Exe_LIBS) nsl 6557 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)',$(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6558 6558 else 6559 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)',$(TEMPLATE_VB OXR3EXE_LDFLAGS))6559 TEMPLATE_VBOXR3STATIC_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)',$(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6560 6560 endif 6561 6561 ifn1of ($(KBUILD_TARGET), darwin os2) # ELF only. Present in gcc 3.2.3 & binutils 2.15, possibly earlier. 6562 6562 ifdef VBOX_LD_gc_sections # Older solaris linker versions doesn't grok --gc-sections (e.g. add build box). 6563 6563 ifndef TEMPLATE_VBOXR3STATIC_CXXFLAGS 6564 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS)6565 TEMPLATE_VBOXR3STATIC_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS)6564 TEMPLATE_VBOXR3STATIC_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) 6565 TEMPLATE_VBOXR3STATIC_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) 6566 6566 endif 6567 6567 TEMPLATE_VBOXR3STATIC_CXXFLAGS += -ffunction-sections -fdata-sections … … 6720 6720 6721 6721 # 6722 # Same as VB OXR3EXEbut without C++ exceptions.6723 # 6724 # VB OXR3EXEdoes C++ exceptions and may assumes that extern "C" functions6722 # Same as VBoxR3Exe but without C++ exceptions. 6723 # 6724 # VBoxR3Exe does C++ exceptions and may assumes that extern "C" functions 6725 6725 # doesn't throw them. Use this template (and VBOXR3DLLNOXCPT) with care 6726 6726 # and only where the C++ overhead is really unwanted. 6727 6727 # 6728 6728 TEMPLATE_VBOXR3EXENOXCPT = VBox Ring 3 Exe without C++ exception 6729 TEMPLATE_VBOXR3EXENOXCPT_EXTENDS = VB OXR3EXE6729 TEMPLATE_VBOXR3EXENOXCPT_EXTENDS = VBoxR3Exe 6730 6730 ifeq ($(KBUILD_TARGET),win) 6731 TEMPLATE_VBOXR3EXENOXCPT_CFLAGS = $(filter-out -EH%,$(TEMPLATE_VB OXR3EXE_CFLAGS) ) -EHs-6732 TEMPLATE_VBOXR3EXENOXCPT_CXXFLAGS = $(filter-out -EH%,$(TEMPLATE_VB OXR3EXE_CXXFLAGS)) -EHs-6733 TEMPLATE_VBOXR3EXENOXCPT_PCHFLAGS = $(filter-out -EH%,$(TEMPLATE_VB OXR3EXE_PCHFLAGS)) -EHs-6731 TEMPLATE_VBOXR3EXENOXCPT_CFLAGS = $(filter-out -EH%,$(TEMPLATE_VBoxR3Exe_CFLAGS) ) -EHs- 6732 TEMPLATE_VBOXR3EXENOXCPT_CXXFLAGS = $(filter-out -EH%,$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) -EHs- 6733 TEMPLATE_VBOXR3EXENOXCPT_PCHFLAGS = $(filter-out -EH%,$(TEMPLATE_VBoxR3Exe_PCHFLAGS)) -EHs- 6734 6734 else 6735 TEMPLATE_VBOXR3EXENOXCPT_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) -fno-exceptions6736 TEMPLATE_VBOXR3EXENOXCPT_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) -fno-exceptions6735 TEMPLATE_VBOXR3EXENOXCPT_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -fno-exceptions 6736 TEMPLATE_VBOXR3EXENOXCPT_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) -fno-exceptions 6737 6737 endif 6738 6738 … … 6756 6756 # 6757 6757 TEMPLATE_VBOXR3HARDENEDEXE = Hardened VBox Ring-3 EXE 6758 TEMPLATE_VBOXR3HARDENEDEXE_EXTENDS = VB OXR3EXE6758 TEMPLATE_VBOXR3HARDENEDEXE_EXTENDS = VBoxR3Exe 6759 6759 TEMPLATE_VBOXR3HARDENEDEXE_DEBUG_INST.win = $(INST_DEBUG)hardened-exes/ 6760 TEMPLATE_VBOXR3HARDENEDEXE_DEFS = $(TEMPLATE_VB OXR3EXE_DEFS) RTMEM_NO_WRAP_TO_EF_APIS6760 TEMPLATE_VBOXR3HARDENEDEXE_DEFS = $(TEMPLATE_VBoxR3Exe_DEFS) RTMEM_NO_WRAP_TO_EF_APIS 6761 6761 ifdef VBOX_WITH_HARDENING 6762 TEMPLATE_VBOXR3HARDENEDEXE_LIBS = $(VBOX_LIB_SUPHARDENED) $(TEMPLATE_VB OXR3EXE_LIBS)6762 TEMPLATE_VBOXR3HARDENEDEXE_LIBS = $(VBOX_LIB_SUPHARDENED) $(TEMPLATE_VBoxR3Exe_LIBS) 6763 6763 else 6764 TEMPLATE_VBOXR3HARDENEDEXE_LIBS = $(TEMPLATE_VB OXR3EXE_LIBS)6765 endif 6766 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.darwin = $(TEMPLATE_VB OXR3EXE_LDFLAGS.darwin) -framework IOKit6764 TEMPLATE_VBOXR3HARDENEDEXE_LIBS = $(TEMPLATE_VBoxR3Exe_LIBS) 6765 endif 6766 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Exe_LDFLAGS.darwin) -framework IOKit 6767 6767 ifeq ($(KBUILD_TARGET),linux) 6768 6768 # not necessary except USE_LIB_PCAP is defined in SUPR3HardenedMain.cpp … … 6770 6770 endif 6771 6771 ifeq ($(KBUILD_TARGET),win) # No CRT! 6772 TEMPLATE_VBOXR3HARDENEDEXE_SDKS = VBOX_NTDLL $(TEMPLATE_VB OXR3EXE_SDKS)6772 TEMPLATE_VBOXR3HARDENEDEXE_SDKS = VBOX_NTDLL $(TEMPLATE_VBoxR3Exe_SDKS) 6773 6773 TEMPLATE_VBOXR3HARDENEDEXE_SDKS.x86 = VBOX_WIN_INT64 6774 6774 ifneq ($(VBOX_VCC_LD_GUARD_CF),) 6775 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_CXXFLAGS))6776 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_CXXFLAGS.debug)) #-O2 -Oy-6777 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_PCHFLAGS))6778 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_PCHFLAGS.debug)) #-O2 -Oy-6779 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_CFLAGS))6780 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VB OXR3EXE_CFLAGS.debug)) -O2 -Oy-6775 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) 6776 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug)) #-O2 -Oy- 6777 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_PCHFLAGS)) 6778 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_PCHFLAGS.debug)) #-O2 -Oy- 6779 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_CFLAGS)) 6780 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Exe_CFLAGS.debug)) -O2 -Oy- 6781 6781 else 6782 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_CXXFLAGS)) -GS-6783 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_CXXFLAGS.debug)) -GS- #-O2 -Oy-6784 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_PCHFLAGS)) -GS-6785 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_PCHFLAGS.debug)) -GS- #-O2 -Oy-6786 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_CFLAGS)) -GS-6787 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VB OXR3EXE_CFLAGS.debug)) -GS- -O2 -Oy-6788 endif 6789 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VB OXR3EXE_LDFLAGS)) \6782 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) -GS- 6783 TEMPLATE_VBOXR3HARDENEDEXE_CXXFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_CXXFLAGS.debug)) -GS- #-O2 -Oy- 6784 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_PCHFLAGS)) -GS- 6785 TEMPLATE_VBOXR3HARDENEDEXE_PCHFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_PCHFLAGS.debug)) -GS- #-O2 -Oy- 6786 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_CFLAGS)) -GS- 6787 TEMPLATE_VBOXR3HARDENEDEXE_CFLAGS.debug = $(filter-out -RTC% -GZ $(VBOX_VCC_SANITIZER_FLAGS) -GS,$(TEMPLATE_VBoxR3Exe_CFLAGS.debug)) -GS- -O2 -Oy- 6788 endif 6789 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3Exe_LDFLAGS)) \ 6790 6790 /DISALLOWLIB:msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6791 6791 /DISALLOWLIB:msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6792 6792 /DISALLOWLIB:vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6793 6793 /DISALLOWLIB:ucrt$(VBOX_VCC_CRT_TYPE).lib 6794 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.win.x86 = $(TEMPLATE_VB OXR3EXE_LDFLAGS.win.x86) /entry:suplibHardenedWindowsMain6795 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.win.amd64 = $(TEMPLATE_VB OXR3EXE_LDFLAGS.win.amd64) /entry:suplibHardenedWindowsMain6794 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.x86) /entry:suplibHardenedWindowsMain 6795 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.win.amd64 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.amd64) /entry:suplibHardenedWindowsMain 6796 6796 TEMPLATE_VBOXR3HARDENEDEXE_LIBS.x86 = $(NOT_SUCH_VARIABLE) 6797 6797 TEMPLATE_VBOXR3HARDENEDEXE_LIBS.amd64 = $(NOT_SUCH_VARIABLE) 6798 TEMPLATE_VBOXR3HARDENEDEXE_USES.win = $(TEMPLATE_VB OXR3EXE_USES.win) vboximportchecker6798 TEMPLATE_VBOXR3HARDENEDEXE_USES.win = $(TEMPLATE_VBoxR3Exe_USES.win) vboximportchecker 6799 6799 TEMPLATE_VBOXR3HARDENEDEXE_VBOX_IMPORT_CHECKER.win = noimports 6800 6800 else ifn1of ($(KBUILD_TARGET), os2) 6801 6801 ifneq ($(KBUILD_TYPE),asan) # Keep RPATH in asan builds so we can find libasan.so.X and libubsan.so.Y. 6802 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VB OXR3EXE_LDFLAGS))6803 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VB OXR3EXE_LDFLAGS.linux))6802 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6803 TEMPLATE_VBOXR3HARDENEDEXE_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBoxR3Exe_LDFLAGS.linux)) 6804 6804 endif 6805 6805 endif … … 6840 6840 TEMPLATE_VBoxR3SetUidToRoot = Set-uid-to-root helper program. 6841 6841 if1of ($(KBUILD_TARGET),win) 6842 TEMPLATE_VBoxR3SetUidToRoot_EXTENDS = VB OXR3EXE6842 TEMPLATE_VBoxR3SetUidToRoot_EXTENDS = VBoxR3Exe 6843 6843 else 6844 6844 TEMPLATE_VBoxR3SetUidToRoot_EXTENDS = VBOXR3HARDENEDEXE … … 6862 6862 # 6863 6863 TEMPLATE_VBoxR3Tool = VBox Ring 3 Tools 6864 TEMPLATE_VBoxR3Tool_EXTENDS = VB OXR3EXE6864 TEMPLATE_VBoxR3Tool_EXTENDS = VBoxR3Exe 6865 6865 TEMPLATE_VBoxR3Tool_INST = $(VBOX_INST_TOOLS) 6866 6866 ifeq ($(KBUILD_TARGET),win) 6867 TEMPLATE_VBoxR3Tool_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) $(VBOX_VCC_WERR)6868 TEMPLATE_VBoxR3Tool_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) $(VBOX_VCC_WERR)6869 TEMPLATE_VBoxR3Tool_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) $(VBOX_VCC_WERR)6870 TEMPLATE_VBoxR3Tool_LDFLAGS = $(TEMPLATE_VB OXR3EXE_LDFLAGS) $(VBOX_VCC_LD_WERR)6867 TEMPLATE_VBoxR3Tool_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) $(VBOX_VCC_WERR) 6868 TEMPLATE_VBoxR3Tool_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) $(VBOX_VCC_WERR) 6869 TEMPLATE_VBoxR3Tool_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) $(VBOX_VCC_WERR) 6870 TEMPLATE_VBoxR3Tool_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) $(VBOX_VCC_LD_WERR) 6871 6871 else 6872 TEMPLATE_VBoxR3Tool_CFLAGS = $(TEMPLATE_VB OXR3EXE_CFLAGS) $(VBOX_GCC_WERR)6873 TEMPLATE_VBoxR3Tool_CXXFLAGS = $(TEMPLATE_VB OXR3EXE_CXXFLAGS) $(VBOX_GCC_WERR)6874 TEMPLATE_VBoxR3Tool_PCHFLAGS = $(TEMPLATE_VB OXR3EXE_PCHFLAGS) $(VBOX_GCC_WERR)6872 TEMPLATE_VBoxR3Tool_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) $(VBOX_GCC_WERR) 6873 TEMPLATE_VBoxR3Tool_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) $(VBOX_GCC_WERR) 6874 TEMPLATE_VBoxR3Tool_PCHFLAGS = $(TEMPLATE_VBoxR3Exe_PCHFLAGS) $(VBOX_GCC_WERR) 6875 6875 ifdef VBOX_WITH_RUNPATH 6876 TEMPLATE_VBoxR3Tool_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VB OXR3EXE_LDFLAGS)6876 TEMPLATE_VBoxR3Tool_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6877 6877 else ifdef VBOX_WITH_RELATIVE_RUNPATH 6878 TEMPLATE_VBoxR3Tool_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VB OXR3EXE_LDFLAGS)6879 endif 6880 endif 6881 TEMPLATE_VBoxR3Tool_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VB OXR3EXE_LIBS)6878 TEMPLATE_VBoxR3Tool_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6879 endif 6880 endif 6881 TEMPLATE_VBoxR3Tool_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LIBS) 6882 6882 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" 6883 6883 TEMPLATE_VBoxR3Tool_LIBS.x86 = \ 6884 6884 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) \ 6885 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib6885 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6886 6886 endif 6887 6887 6888 6888 # 6889 6889 # Template for building R3 shared objects / DLLs with the 10.5 Mac OS X SDK. 6890 # Identical to VB OXR3EXE, except for the DYLIB, the classic_linker and SDK bits.6890 # Identical to VBoxR3Exe, except for the DYLIB, the classic_linker and SDK bits. 6891 6891 # 6892 6892 TEMPLATE_VBOXR3OSX105 = VBox Ring 3 SO/DLLs for OS X 10.5 6893 TEMPLATE_VBOXR3OSX105_EXTENDS = VB OXR3EXE6893 TEMPLATE_VBOXR3OSX105_EXTENDS = VBoxR3Exe 6894 6894 TEMPLATE_VBOXR3OSX105_DEFS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_DEFS) PIC 6895 6895 TEMPLATE_VBOXR3OSX105_CFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_10_5_CFLAGS) -fno-common … … 6923 6923 # 6924 6924 # Ring-3 testcase, running automatically during the build. 6925 # This is the VB OXR3EXEtemplate only with a different install dir.6925 # This is the VBoxR3Exe template only with a different install dir. 6926 6926 # 6927 6927 TEMPLATE_VBOXR3AUTOTST = VBox Ring 3 Testcase Exe … … 6947 6947 # 6948 6948 # Ring-3 testcase. 6949 # This is the VB OXR3EXEtemplate only with a different install dir.6949 # This is the VBoxR3Exe template only with a different install dir. 6950 6950 # 6951 6951 TEMPLATE_VBOXR3TSTEXE = VBox Ring 3 Testcase Exe 6952 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VB OXR3EXE6953 TEMPLATE_VBOXR3TSTEXE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VB OXR3EXE_LIBS)6952 TEMPLATE_VBOXR3TSTEXE_EXTENDS = VBoxR3Exe 6953 TEMPLATE_VBOXR3TSTEXE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LIBS) 6954 6954 TEMPLATE_VBOXR3TSTEXE_INST = $(INST_TESTCASE) 6955 6955 ifdef VBOX_WITH_RUNPATH 6956 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VB OXR3EXE_LDFLAGS)6956 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6957 6957 else ifdef VBOX_WITH_RELATIVE_RUNPATH 6958 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VB OXR3EXE_LDFLAGS)6958 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 6959 6959 endif 6960 6960 if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE) 6961 6961 TEMPLATE_VBOXR3TSTEXE_POST_CMDS = 6962 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = $(filter-out -IntegrityCheck, $(TEMPLATE_VB OXR3EXE_LDFLAGS))6962 TEMPLATE_VBOXR3TSTEXE_LDFLAGS = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6963 6963 endif 6964 6964 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" … … 6966 6966 TEMPLATE_VBOXR3TSTEXE_LIBS.x86 = \ 6967 6967 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) \ 6968 $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/oldnames.lib6968 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6969 6969 endif 6970 6970 … … 7015 7015 # 7016 7016 TEMPLATE_VBOXR3NPEXE = VBox Ring 3 Non-pedantic 7017 TEMPLATE_VBOXR3NPEXE_EXTENDS = VB OXR3EXE7017 TEMPLATE_VBOXR3NPEXE_EXTENDS = VBoxR3Exe 7018 7018 ifneq ($(KBUILD_TARGET),win) # (only gcc) 7019 7019 TEMPLATE_VBOXR3NPEXE_TOOL = $(VBOX_GCC_TOOL) 7020 TEMPLATE_VBOXR3NPEXE_CFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C) ,$(TEMPLATE_VB OXR3EXE_CFLAGS)) \7020 TEMPLATE_VBOXR3NPEXE_CFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_C) ,$(TEMPLATE_VBoxR3Exe_CFLAGS)) \ 7021 7021 $(VBOX_GCC_NON_PEDANTIC_C) 7022 TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VB OXR3EXE_CXXFLAGS)) \7022 TEMPLATE_VBOXR3NPEXE_CXXFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBoxR3Exe_CXXFLAGS)) \ 7023 7023 $(VBOX_GCC_NON_PEDANTIC_CXX) 7024 TEMPLATE_VBOXR3NPEXE_PCHFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VB OXR3EXE_PCHFLAGS)) \7024 TEMPLATE_VBOXR3NPEXE_PCHFLAGS = $(filter-out $(VBOX_GCC_WERR) $(VBOX_GCC_WARN_MASOCHISTIC) $(VBOX_GCC_PEDANTIC_CXX),$(TEMPLATE_VBoxR3Exe_PCHFLAGS)) \ 7025 7025 $(VBOX_GCC_NON_PEDANTIC_CXX) 7026 7026 endif … … 7108 7108 TEMPLATE_VBoxR3RuntimeDll_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Dll_CXXFLAGS)) -MT$(VBOX_VCC_CRT_TYPE) 7109 7109 TEMPLATE_VBoxR3RuntimeDll_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Dll_PCHFLAGS)) -MT$(VBOX_VCC_CRT_TYPE) 7110 TEMPLATE_VBoxR3RuntimeDll_LIBS.x86 = $(filter-out $(PATH_TOOL_$(TEMPLATE_VB OXR3EXE_TOOL.win.x86)_LIB)/%, $(TEMPLATE_VBoxR3Dll_LIBS.x86)) \7110 TEMPLATE_VBoxR3RuntimeDll_LIBS.x86 = $(filter-out $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/%, $(TEMPLATE_VBoxR3Dll_LIBS.x86)) \ 7111 7111 $(PATH_TOOL_$(TEMPLATE_VBoxR3RuntimeDll_TOOL.win.x86)_LIB)/oldnames.lib \ 7112 7112 $(PATH_TOOL_$(TEMPLATE_VBoxR3RuntimeDll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 7249 7249 TEMPLATE_VBOXMAINEXE_DEFS = IN_RING3 UNICODE NDEBUG=1 7250 7250 TEMPLATE_VBOXMAINEXE_DEFS.win = _UNICODE 7251 TEMPLATE_VBOXMAINEXE_RCDEFS = $(TEMPLATE_VB OXR3EXE_RCDEFS)7251 TEMPLATE_VBOXMAINEXE_RCDEFS = $(TEMPLATE_VBoxR3Exe_RCDEFS) 7252 7252 TEMPLATE_VBOXMAINEXE_LIBS.kprofile = $(LIB_KPROFILE) 7253 7253 TEMPLATE_VBOXMAINEXE_USES = dtrace … … 7920 7920 TEMPLATE_VBoxQtGuiExe_QT_INFIX = $(VBOX_QT_INFIX) 7921 7921 TEMPLATE_VBoxQtGuiExe_DEFS = IN_RING3 QT_NO_DEBUG QT_THREAD_SUPPORT QT_SHARED HAVE_CONFIG_H $(ARCH_BITS_DEFS) 7922 TEMPLATE_VBoxQtGuiExe_RCDEFS = $(TEMPLATE_VB OXR3EXE_RCDEFS)7922 TEMPLATE_VBoxQtGuiExe_RCDEFS = $(TEMPLATE_VBoxR3Exe_RCDEFS) 7923 7923 7924 7924 ifeq ($(KBUILD_TARGET),win) … … 8576 8576 8577 8577 else # the gcc guys 8578 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VB OXR3EXE8578 TEMPLATE_VBOXGUESTR3EXE_EXTENDS = VBoxR3Exe 8579 8579 ifn1of ($(KBUILD_TARGET), darwin) 8580 8580 TEMPLATE_VBOXGUESTR3EXE_TOOL := $(subst GXX,GCC,$(TEMPLATE_$(TEMPLATE_VBOXGUESTR3EXE_EXTENDS)_TOOL)) 8581 8581 endif 8582 8582 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS = $(TEMPLATE_$(TEMPLATE_VBOXGUESTR3EXE_EXTENDS)_CXXFLAGS) -fno-exceptions -fno-rtti 8583 # Do not inherit sanitizer flags from VB OXR3EXEin guest executables. Deal with them separately.8583 # Do not inherit sanitizer flags from VBoxR3Exe in guest executables. Deal with them separately. 8584 8584 TEMPLATE_VBOXGUESTR3EXE_CXXFLAGS.debug = $(NO_SUCH_VARIABLE) 8585 8585 TEMPLATE_VBOXGUESTR3EXE_CFLAGS.debug = $(NO_SUCH_VARIABLE) … … 8889 8889 # 8890 8890 # Template for XFree86 guest modules (relocatable module, i.e. sysmod). 8891 # This mostly about zapping the VB OXR3EXElinker flags and libraries.8891 # This mostly about zapping the VBoxR3Exe linker flags and libraries. 8892 8892 # 8893 8893 TEMPLATE_VBOXGUESTR3XF86MOD = VBox XFree86 Guest Module
Note:
See TracChangeset
for help on using the changeset viewer.