Changeset 106683 in vbox
- Timestamp:
- Oct 25, 2024 10:28:28 AM (3 months ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r106673 r106683 5174 5174 SDK_VBoxLzf-x86_LIBS ?= $(PATH_STAGE_LIB)/VBox-liblzf-x86$(VBOX_SUFF_LIB) 5175 5175 5176 SDK_VBoxLzf _STATIC:= lzf compressor/decompressor for static linking.5177 SDK_VBoxLzf _STATIC_EXTENDS:= VBoxLzf5176 SDK_VBoxLzfStatic := lzf compressor/decompressor for static linking. 5177 SDK_VBoxLzfStatic_EXTENDS := VBoxLzf 5178 5178 if1of ($(KBUILD_TARGET), os2 win) 5179 SDK_VBoxLzf _STATIC_LIBS:= $(PATH_STAGE_LIB)/VBox-liblzf-static$(VBOX_SUFF_LIB)5179 SDK_VBoxLzfStatic_LIBS := $(PATH_STAGE_LIB)/VBox-liblzf-static$(VBOX_SUFF_LIB) 5180 5180 endif 5181 5181 … … 5490 5490 TEMPLATE_VBoxRc_LDFLAGS += -IntegrityCheck 5491 5491 endif 5492 TEMPLATE_VBoxRc_L IBS+= \5492 TEMPLATE_VBoxRc_LATE_LIBS += \ 5493 5493 $(PATH_STAGE_LIB)/RuntimeRCStub$(VBOX_SUFF_LIB) 5494 5494 TEMPLATE_VBoxRc_POST_CMDS = $(VBOX_SIGN_IMAGE_CMDS) … … 5511 5511 endif 5512 5512 ifn1of ($(KBUILD_TARGET), solaris freebsd) 5513 TEMPLATE_VBoxRc_L IBS= \5513 TEMPLATE_VBoxRc_LATE_LIBS = \ 5514 5514 $(VBOX_GCC32_LIBGCC) # intrinsics 5515 5515 endif … … 5537 5537 TEMPLATE_VBoxRc_CFLAGS = -nostdinc -g $(VBOX_GCC_pipe) $(VBOX_GCC_WERR) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC32_Wno-variadic-macros) $(VBOX_GCC_GC_OPT) $(VBOX_GCC_GC_FP) -fno-strict-aliasing -fno-exceptions 5538 5538 TEMPLATE_VBoxRc_LDFLAGS = -Zdll -nostdlib 5539 TEMPLATE_VBoxRc_L IBS= \5539 TEMPLATE_VBoxRc_LATE_LIBS = \ 5540 5540 $(VBOX_GCC32_LIBGCC) \ 5541 5541 $(VBOX_OBJ_SYS0) \ … … 5558 5558 -Version:$(VBOX_VERSION_MAJOR)0$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD) \ 5559 5559 -Stub:$(PATH_ROOT)/src/VBox/HostDrivers/Support/win/winstub.com 5560 TEMPLATE_VBoxRcExe_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK)5561 TEMPLATE_VBoxRcExe_L IBS= \5560 TEMPLATE_VBoxRcExe_SDKS = ReorderCompilerIncs $(VBOX_WINPSDK) 5561 TEMPLATE_VBoxRcExe_LATE_LIBS = \ 5562 5562 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/libcmt.lib \ 5563 5563 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/oldnames.lib … … 5573 5573 if1of ($(KBUILD_TARGET).$(KBUILD_TARGET_ARCH), freebsd.amd64) 5574 5574 # The FreeBSD port of gcc isn't picking up -m32 where it should. 5575 TEMPLATE_VBoxRcExe_DEFS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxRc_DEFS.$(KBUILD_TARGET)) IPRT_DONT_USE_SYSTEM_STDINT_H5576 TEMPLATE_VBoxRcExe_LDFLAGS.$(KBUILD_TARGET) = /usr/lib32/crt1.o /usr/lib32/crti.o /usr/lib32/crtbegin.o $(TEMPLATE_VBoxRc_LDFLAGS.$(KBUILD_TARGET)) -nostdlib -v5577 TEMPLATE_VBoxRcExe_LIBPATH.$(KBUILD_TARGET) = /usr/lib325578 TEMPLATE_VBoxRcExe_L IBS.$(KBUILD_TARGET)= /usr/lib32/crtend.o /usr/lib32/crtn.o /usr/lib32/libc.so5575 TEMPLATE_VBoxRcExe_DEFS.$(KBUILD_TARGET) = $(TEMPLATE_VBoxRc_DEFS.$(KBUILD_TARGET)) IPRT_DONT_USE_SYSTEM_STDINT_H 5576 TEMPLATE_VBoxRcExe_LDFLAGS.$(KBUILD_TARGET) = /usr/lib32/crt1.o /usr/lib32/crti.o /usr/lib32/crtbegin.o $(TEMPLATE_VBoxRc_LDFLAGS.$(KBUILD_TARGET)) -nostdlib -v 5577 TEMPLATE_VBoxRcExe_LIBPATH.$(KBUILD_TARGET) = /usr/lib32 5578 TEMPLATE_VBoxRcExe_LATE_LIBS.$(KBUILD_TARGET) = /usr/lib32/crtend.o /usr/lib32/crtn.o /usr/lib32/libc.so 5579 5579 endif 5580 5580 endif … … 5587 5587 5588 5588 ifeq ($(VBOX_LDR_FMT32),lx) 5589 TEMPLATE_VBoxRcExe_CFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CFLAGS))5590 TEMPLATE_VBoxRcExe_CXXFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CXXFLAGS))5591 TEMPLATE_VBoxRcExe_LDFLAGS = -g5592 TEMPLATE_VBoxRcExe_L IBS= $(NO_SUCH_VARIABLE)5589 TEMPLATE_VBoxRcExe_CFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CFLAGS)) 5590 TEMPLATE_VBoxRcExe_CXXFLAGS = $(filter-out -nostdinc,$(TEMPLATE_VBoxRc_CXXFLAGS)) 5591 TEMPLATE_VBoxRcExe_LDFLAGS = -g 5592 TEMPLATE_VBoxRcExe_LATE_LIBS = $(NO_SUCH_VARIABLE) 5593 5593 endif 5594 5594 endif # VBOX_WITH_RAW_MODE … … 5663 5663 TEMPLATE_VBoxR0_LDFLAGS.win.arm64 += -Include:__security_init_cookie -Export:ModuleInitSecurityCookie=__security_init_cookie 5664 5664 endif 5665 TEMPLATE_VBoxR0_L IBS= \5665 TEMPLATE_VBoxR0_LATE_LIBS = \ 5666 5666 $(PATH_STAGE_LIB)/RuntimeR0Stub$(VBOX_SUFF_LIB) 5667 5667 ifneq ($(VBOX_VCC_CC_GUARD_CF),) 5668 TEMPLATE_VBoxR0_L IBS.x86+= \5668 TEMPLATE_VBoxR0_LATE_LIBS.x86 += \ 5669 5669 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/BufferOverflowK.lib 5670 TEMPLATE_VBoxR0_L IBS.amd64+= \5670 TEMPLATE_VBoxR0_LATE_LIBS.amd64 += \ 5671 5671 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/BufferOverflowK.lib 5672 TEMPLATE_VBoxR0_L IBS.arm64+= \5672 TEMPLATE_VBoxR0_LATE_LIBS.arm64 += \ 5673 5673 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/BufferOverflowFastFailK.lib 5674 5674 include $(KBUILD_PATH)/sdks/$(VBOX_WINDDK).kmk ## TODO: Add a kBuild feature for loading SDKs. … … 5701 5701 TEMPLATE_VBoxR0_LDFLAGS.solaris.amd64 = -m64 5702 5702 TEMPLATE_VBoxR0_LDFLAGS.solaris.x86 = -m32 5703 TEMPLATE_VBoxR0_L IBS.solaris= \5703 TEMPLATE_VBoxR0_LATE_LIBS.solaris = \ 5704 5704 $(PATH_STAGE_LIB)/RuntimeR0Stub$(VBOX_SUFF_LIB) 5705 5705 ifdef VBOX_GCC_USING_SOLARIS_AS … … 5734 5734 endif 5735 5735 ifdef VBOX_WITH_R0_MOD_IBT_BRANCH_PROTECTION 5736 TEMPLATE_VBoxR0_CFLAGS += $(VBOX_GCC_fcf-protection_branch) -fno-jump-tables5737 TEMPLATE_VBoxR0_CXXFLAGS += $(VBOX_GCC_fcf-protection_branch) -fno-jump-tables5738 TEMPLATE_VBoxR0_LDFLAGS += $(VBOX_GCC_fcf-protection_branch) $(VBOX_GCC_fcf-protection_check)5736 TEMPLATE_VBoxR0_CFLAGS += $(VBOX_GCC_fcf-protection_branch) -fno-jump-tables 5737 TEMPLATE_VBoxR0_CXXFLAGS += $(VBOX_GCC_fcf-protection_branch) -fno-jump-tables 5738 TEMPLATE_VBoxR0_LDFLAGS += $(VBOX_GCC_fcf-protection_branch) $(VBOX_GCC_fcf-protection_check) 5739 5739 ifeq ($(VBOX_GCC_fcf-protection_branch),) 5740 5740 $(warning VBox: VBOX_WITH_R0_MOD_IBT_BRANCH_PROTECTION is set but gcc doesn't support branch protection) … … 5742 5742 endif 5743 5743 ifn1of ($(KBUILD_TARGET), solaris freebsd) 5744 TEMPLATE_VBoxR0_L IBS= \5744 TEMPLATE_VBoxR0_LATE_LIBS = \ 5745 5745 $(VBOX_GCC_LIBGCC) # intrinsics 5746 5746 endif … … 5787 5787 endif 5788 5788 TEMPLATE_VBoxR0_LDFLAGS = -nostdlib -Zdll 5789 TEMPLATE_VBoxR0_L IBS= \5789 TEMPLATE_VBoxR0_LATE_LIBS = \ 5790 5790 $(VBOX_GCC_LIBGCC) \ 5791 5791 $(VBOX_OBJ_SYS0) \ … … 5965 5965 TEMPLATE_VBoxR0Drv_CXXFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_CXX) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions -fno-rtti 5966 5966 TEMPLATE_VBoxR0Drv_CFLAGS = -g $(VBOX_GCC_pipe) $(VBOX_GCC_PEDANTIC_C) $(VBOX_GCC_Wno-variadic-macros) $(VBOX_GCC_R0_OPT) $(VBOX_GCC_R0_FP) -fno-strict-aliasing -fno-exceptions 5967 TEMPLATE_VBoxR0Drv_L IBS= $(VBOX_GCC_LIBGCC)5967 TEMPLATE_VBoxR0Drv_LATE_LIBS = $(VBOX_GCC_LIBGCC) 5968 5968 # wlink thinks physdevice doesn't need fixups and should have a stack - stupid! 5969 5969 TEMPLATE_VBoxR0Drv_LDFLAGS = -Zlinker Option -Zlinker internalrelocs, -Zlinker togglerelocs … … 6022 6022 TEMPLATE_VBoxR0Drv_LDFLAGS.amd64 = -m64 6023 6023 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m32 6024 TEMPLATE_VBoxR0Drv_L IBS= kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC)6024 TEMPLATE_VBoxR0Drv_LATE_LIBS = kmodc++ kmod cc_kext cpp_kext $(VBOX_GCC_LIBGCC) 6025 6025 else 6026 6026 # Note xcode uses -fstrict-aliasing, we currently don't dare... We also add -mno-red-zone. … … 6076 6076 TEMPLATE_VBoxR0Drv_LDFLAGS.arm64 = -m64 6077 6077 TEMPLATE_VBoxR0Drv_LDFLAGS.x86 = -m32 6078 TEMPLATE_VBoxR0Drv_L IBS= kmodc++ kmod cc_kext6078 TEMPLATE_VBoxR0Drv_LATE_LIBS = kmodc++ kmod cc_kext 6079 6079 endif 6080 6080 endif … … 6395 6395 endif 6396 6396 endif 6397 TEMPLATE_VBoxR3Exe_L IBS.kprofile= $(LIB_KPROFILE)6397 TEMPLATE_VBoxR3Exe_LATE_LIBS.kprofile = $(LIB_KPROFILE) 6398 6398 ifeq ($(KBUILD_TARGET),win) 6399 6399 # TEMPLATE_VBoxR3Exe_TOOL = $(VBOX_VCC_TOOL) … … 6456 6456 6457 6457 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 6458 TEMPLATE_VBoxR3Exe_L IBS.x86= \6458 TEMPLATE_VBoxR3Exe_LATE_LIBS.x86 = \ 6459 6459 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6460 6460 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6461 6461 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6462 6462 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6463 TEMPLATE_VBoxR3Exe_L IBS.amd64= \6463 TEMPLATE_VBoxR3Exe_LATE_LIBS.amd64 = \ 6464 6464 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6465 6465 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6466 6466 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6467 6467 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/oldnames.lib 6468 TEMPLATE_VBoxR3Exe_L IBS.arm64= \6468 TEMPLATE_VBoxR3Exe_LATE_LIBS.arm64 = \ 6469 6469 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6470 6470 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ … … 6472 6472 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.arm64)_LIB)/oldnames.lib 6473 6473 ifeq ($(KBUILD_TYPE),asan) 6474 TEMPLATE_VBoxR3Exe_L IBS.x86+= \6474 TEMPLATE_VBoxR3Exe_LATE_LIBS.x86 += \ 6475 6475 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic-i386.lib \ 6476 6476 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic_runtime_thunk-i386.lib 6477 TEMPLATE_VBoxR3Exe_L IBS.amd64+= \6477 TEMPLATE_VBoxR3Exe_LATE_LIBS.amd64 += \ 6478 6478 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic-x86_64.lib \ 6479 6479 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib 6480 6480 endif 6481 6481 else 6482 TEMPLATE_VBoxR3Exe_L IBS.x86= \6482 TEMPLATE_VBoxR3Exe_LATE_LIBS.x86 = \ 6483 6483 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6484 6484 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 6485 6485 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib 6486 TEMPLATE_VBoxR3Exe_L IBS.amd64= \6486 TEMPLATE_VBoxR3Exe_LATE_LIBS.amd64 = \ 6487 6487 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 6488 6488 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ … … 6498 6498 -Include:_vcc100_kernel32_fakes_cpp \ 6499 6499 -Include:_vcc100_kernel32_fakes_asm 6500 TEMPLATE_VBoxR3Exe_L IBS.win.x86= \6500 TEMPLATE_VBoxR3Exe_LATE_LIBS.win.x86 = \ 6501 6501 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) 6502 TEMPLATE_VBoxR3Exe_L IBS.x86= \6502 TEMPLATE_VBoxR3Exe_LATE_LIBS.x86 = \ 6503 6503 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib \ 6504 6504 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 6557 6557 6558 6558 ifeq ($(KBUILD_TARGET),linux) 6559 TEMPLATE_VBoxR3Exe_L IBS= pthread m rt dl6559 TEMPLATE_VBoxR3Exe_LATE_LIBS = pthread m rt dl 6560 6560 else ifeq ($(KBUILD_TARGET),os2) 6561 6561 TEMPLATE_VBoxR3Exe_TOOL = GXX3OMF 6562 TEMPLATE_VBoxR3Exe_L IBS= socket iconv6562 TEMPLATE_VBoxR3Exe_LATE_LIBS = socket iconv 6563 6563 else ifeq ($(KBUILD_TARGET),darwin) 6564 6564 TEMPLATE_VBoxR3Exe_TOOL = $(VBOX_GCC_TOOL) 6565 TEMPLATE_VBoxR3Exe_L IBS=6565 TEMPLATE_VBoxR3Exe_LATE_LIBS = 6566 6566 TEMPLATE_VBoxR3Exe_DEFS += LIBICONV_PLUG # Avoid 3rd party libiconv (from macports). 6567 6567 TEMPLATE_VBoxR3Exe_SDKS.darwin = $(VBOX_DARWIN_DEF_SDK_SDKS) … … 6580 6580 else ifeq ($(KBUILD_TARGET),haiku) 6581 6581 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6582 TEMPLATE_VBoxR3Exe_POST_CMDS = $(VBOX_HAIKU_XRES_SETVER_CMDS)6583 TEMPLATE_VBoxR3Exe_L IBS= network iconv stdc++ supc++6582 TEMPLATE_VBoxR3Exe_POST_CMDS = $(VBOX_HAIKU_XRES_SETVER_CMDS) 6583 TEMPLATE_VBoxR3Exe_LATE_LIBS = network iconv stdc++ supc++ 6584 6584 TEMPLATE_VBoxR3Exe_LIBPATH += \ 6585 6585 /boot/common/lib … … 6590 6590 else if1of ($(KBUILD_TARGET), freebsd openbsd) 6591 6591 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6592 TEMPLATE_VBoxR3Exe_L IBS= pthread6592 TEMPLATE_VBoxR3Exe_LATE_LIBS = pthread 6593 6593 TEMPLATE_VBoxR3Exe_INCS += \ 6594 6594 /usr/include \ … … 6601 6601 else ifeq ($(KBUILD_TARGET),netbsd) 6602 6602 TEMPLATE_VBoxR3Exe_TOOL = GXX3 6603 TEMPLATE_VBoxR3Exe_L IBS = pthread6603 TEMPLATE_VBoxR3Exe_LATE_LIBS = pthread 6604 6604 TEMPLATE_VBoxR3Exe_INCS += \ 6605 6605 /usr/include \ … … 6614 6614 TEMPLATE_VBoxR3Exe_CFLAGS += -std=gnu99 6615 6615 endif 6616 TEMPLATE_VBoxR3Exe_L IBS= rt socket6616 TEMPLATE_VBoxR3Exe_LATE_LIBS = rt socket 6617 6617 else 6618 6618 $(warning Warning: VBOX Build: Target $(KBUILD_TARGET) is not officially supported!) … … 6790 6790 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 6791 6791 ifdef VBOX_WITH_NOCRT_STATIC 6792 TEMPLATE_VBoxR3StaticBase_L IBS.amd64= $(NO_SUCH_VARIABLE)6793 TEMPLATE_VBoxR3StaticBase_L IBS.x86= $(NO_SUCH_VARIABLE)6792 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.amd64 = $(NO_SUCH_VARIABLE) 6793 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.x86 = $(NO_SUCH_VARIABLE) 6794 6794 else 6795 TEMPLATE_VBoxR3StaticBase_L IBS.x86= \6795 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.x86 = \ 6796 6796 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/libvcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6797 6797 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6798 6798 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6799 6799 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/oldnames.lib 6800 TEMPLATE_VBoxR3StaticBase_L IBS.amd64= \6800 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.amd64 = \ 6801 6801 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libvcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6802 6802 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6803 6803 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6804 6804 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/oldnames.lib 6805 TEMPLATE_VBoxR3StaticBase_L IBS.arm64= \6805 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.arm64 = \ 6806 6806 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libvcruntime$(VBOX_VCC_CRT_TYPE).lib \ 6807 6807 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 6810 6810 endif 6811 6811 ifeq ($(KBUILD_TYPE),asan) 6812 TEMPLATE_VBoxR3StaticBase_L IBS.x86+= \6812 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.x86 += \ 6813 6813 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/clang_rt.asan-i386.lib \ 6814 6814 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/clang_rt.asan_cxx-i386.lib 6815 TEMPLATE_VBoxR3StaticBase_L IBS.amd64+= \6815 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.amd64 += \ 6816 6816 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/clang_rt.asan-x86_64.lib \ 6817 6817 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/clang_rt.asan_cxx-x86_64.lib … … 6819 6819 else 6820 6820 ifdef VBOX_WITH_NOCRT_STATIC 6821 TEMPLATE_VBoxR3StaticBase_L IBS.amd64= $(NO_SUCH_VARIABLE)6822 TEMPLATE_VBoxR3StaticBase_L IBS.x86= $(NO_SUCH_VARIABLE)6821 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.amd64 = $(NO_SUCH_VARIABLE) 6822 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.x86 = $(NO_SUCH_VARIABLE) 6823 6823 else 6824 TEMPLATE_VBoxR3StaticBase_L IBS.x86= \6824 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.x86 = \ 6825 6825 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/oldnames.lib \ 6826 6826 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6827 6827 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 6828 TEMPLATE_VBoxR3StaticBase_L IBS.amd64= \6828 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.amd64 = \ 6829 6829 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6830 6830 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ 6831 6831 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.amd64)_LIB)/oldnames.lib 6832 TEMPLATE_VBoxR3StaticBase_L IBS.arm64= \6832 TEMPLATE_VBoxR3StaticBase_LATE_LIBS.arm64 = \ 6833 6833 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 6834 6834 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticBase_TOOL.win.arm64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib \ … … 6849 6849 TEMPLATE_VBoxR3StaticBase_LDFLAGS = $(TEMPLATE_VBoxR3Exe_LDFLAGS) -static 6850 6850 else ifeq ($(KBUILD_TARGET),solaris) 6851 TEMPLATE_VBoxR3StaticBase_L IBS = $(TEMPLATE_VBoxR3Exe_LIBS) nsl6851 TEMPLATE_VBoxR3StaticBase_LATE_LIBS = $(TEMPLATE_VBoxR3Exe_LATE_LIBS) nsl 6852 6852 TEMPLATE_VBoxR3StaticBase_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)',$(TEMPLATE_VBoxR3Exe_LDFLAGS)) 6853 6853 else … … 6887 6887 TEMPLATE_VBoxR3Static_LDFLAGS.darwin.arm64 += $(TEMPLATE_VBoxR3StaticBase_LDFLAGS.darwin.arm64) -framework IOKit 6888 6888 endif 6889 TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH) += \6889 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \ 6890 6890 $(VBOX_LIB_RUNTIME_STATIC) 6891 6891 ifneq ($(KBUILD_TARGET_ARCH),x86) 6892 TEMPLATE_VBoxR3Static_L IBS.x86+= \6892 TEMPLATE_VBoxR3Static_LATE_LIBS.x86 += \ 6893 6893 $(VBOX_LIB_RUNTIME_STATIC_X86) 6894 6894 endif 6895 6895 ifndef SDK_VBoxLibXml2_LIBS 6896 TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH) += \6896 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \ 6897 6897 $(PATH_STAGE_LIB)/VBox-libxml2-static$(VBOX_SUFF_LIB) 6898 6898 endif 6899 6899 if1of ($(KBUILD_TARGET), os2 win) 6900 TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH) += \6901 $(SDK_VBoxLzf _STATIC_LIBS) \6900 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \ 6901 $(SDK_VBoxLzfStatic_LIBS) \ 6902 6902 $(SDK_VBoxZlibStatic_LIBS) \ 6903 6903 $(SDK_VBoxLibLzmaStatic_LIBS) 6904 6904 else 6905 TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH) += \6905 TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH) += \ 6906 6906 $(SDK_VBoxLzf_LIBS) \ 6907 6907 $(SDK_VBoxZlib_LIBS) \ 6908 6908 $(SDK_VBoxLibLzma_LIBS) 6909 6909 if1of ($(KBUILD_TARGET), darwin freebsd) 6910 TEMPLATE_VBoxR3Static_L IBS+= iconv6910 TEMPLATE_VBoxR3Static_LATE_LIBS += iconv 6911 6911 else ifeq ($(KBUILD_TARGET),solaris) 6912 TEMPLATE_VBoxR3Static_L IBS+= kstat6912 TEMPLATE_VBoxR3Static_LATE_LIBS += kstat 6913 6913 endif 6914 6914 endif … … 6918 6918 # 6919 6919 TEMPLATE_VBoxR3StaticExeNoAsan = VBoxR3Static but w/o ASAN 6920 TEMPLATE_VBoxR3StaticExeNoAsan_EXTENDS = VBoxR3Static6920 TEMPLATE_VBoxR3StaticExeNoAsan_EXTENDS = VBoxR3Static 6921 6921 if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_TYPE)" == "asan" 6922 TEMPLATE_VBoxR3StaticExeNoAsan_CFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_CFLAGS))6923 TEMPLATE_VBoxR3StaticExeNoAsan_CXXFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_CXXFLAGS))6924 TEMPLATE_VBoxR3StaticExeNoAsan_PCHFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_PCHFLAGS))6925 TEMPLATE_VBoxR3StaticExeNoAsan_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3Static_LDFLAGS)) -InferAsanLibs:No6926 TEMPLATE_VBoxR3StaticExeNoAsan_L IBS.x86 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan-i386.lib %clang_rt.asan_cxx-i386.lib , $(TEMPLATE_VBoxR3Static_LIBS.x86)))6927 TEMPLATE_VBoxR3StaticExeNoAsan_L IBS.amd64 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan-x86_64.lib %clang_rt.asan_cxx-x86_64.lib, $(TEMPLATE_VBoxR3Static_LIBS.amd64)))6922 TEMPLATE_VBoxR3StaticExeNoAsan_CFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_CFLAGS)) 6923 TEMPLATE_VBoxR3StaticExeNoAsan_CXXFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_CXXFLAGS)) 6924 TEMPLATE_VBoxR3StaticExeNoAsan_PCHFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3Static_PCHFLAGS)) 6925 TEMPLATE_VBoxR3StaticExeNoAsan_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3Static_LDFLAGS)) -InferAsanLibs:No 6926 TEMPLATE_VBoxR3StaticExeNoAsan_LATE_LIBS.x86 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan-i386.lib %clang_rt.asan_cxx-i386.lib , $(TEMPLATE_VBoxR3Static_LATE_LIBS.x86))) 6927 TEMPLATE_VBoxR3StaticExeNoAsan_LATE_LIBS.amd64 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan-x86_64.lib %clang_rt.asan_cxx-x86_64.lib, $(TEMPLATE_VBoxR3Static_LATE_LIBS.amd64))) 6928 6928 endif 6929 6929 … … 6932 6932 # 6933 6933 ## @todo make VBoxR3StaticDll work on non-windows. 6934 TEMPLATE_VBoxR3StaticDll = VBox Static Ring-3 DLL6935 TEMPLATE_VBoxR3StaticDll_EXTENDS = VBoxR3Static6934 TEMPLATE_VBoxR3StaticDll = VBox Static Ring-3 DLL 6935 TEMPLATE_VBoxR3StaticDll_EXTENDS = VBoxR3Static 6936 6936 if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_TYPE)" == "asan" 6937 TEMPLATE_VBoxR3StaticDll_L IBS.x86 = $(patsubst %clang_rt.asan-i386.lib, %clang_rt.asan_dll_thunk-i386.lib, $(filter-out %clang_rt.asan_cxx-i386.lib,$(TEMPLATE_VBoxR3Static_LIBS.x86)))6938 TEMPLATE_VBoxR3StaticDll_L IBS.amd64 = $(patsubst %clang_rt.asan-x86_64.lib, %clang_rt.asan_dll_thunk-x86_64.lib, $(filter-out %clang_rt.asan_cxx-x86_64.lib,$(TEMPLATE_VBoxR3Static_LIBS.amd64)))6937 TEMPLATE_VBoxR3StaticDll_LATE_LIBS.x86 = $(patsubst %clang_rt.asan-i386.lib, %clang_rt.asan_dll_thunk-i386.lib, $(filter-out %clang_rt.asan_cxx-i386.lib,$(TEMPLATE_VBoxR3Static_LATE_LIBS.x86))) 6938 TEMPLATE_VBoxR3StaticDll_LATE_LIBS.amd64 = $(patsubst %clang_rt.asan-x86_64.lib, %clang_rt.asan_dll_thunk-x86_64.lib, $(filter-out %clang_rt.asan_cxx-x86_64.lib,$(TEMPLATE_VBoxR3Static_LATE_LIBS.amd64))) 6939 6939 endif 6940 6940 … … 6945 6945 # 6946 6946 TEMPLATE_VBoxR3StaticDllNoAsan = VBoxR3StaticDll but w/o ASAN 6947 TEMPLATE_VBoxR3StaticDllNoAsan_EXTENDS = VBoxR3StaticDll6947 TEMPLATE_VBoxR3StaticDllNoAsan_EXTENDS = VBoxR3StaticDll 6948 6948 if "$(KBUILD_TARGET)" == "win" && "$(KBUILD_TYPE)" == "asan" 6949 TEMPLATE_VBoxR3StaticDllNoAsan_CFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_CFLAGS))6950 TEMPLATE_VBoxR3StaticDllNoAsan_CXXFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_CXXFLAGS))6951 TEMPLATE_VBoxR3StaticDllNoAsan_PCHFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_PCHFLAGS))6952 TEMPLATE_VBoxR3StaticDllNoAsan_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3StaticDll_LDFLAGS)) -InferAsanLibs:No6953 TEMPLATE_VBoxR3StaticDllNoAsan_L IBS.x86 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan_dll_thunk-i386.lib, $(TEMPLATE_VBoxR3StaticDll_LIBS.x86)))6954 TEMPLATE_VBoxR3StaticDllNoAsan_L IBS.amd64 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan_dll_thunk-x86_64.lib, $(TEMPLATE_VBoxR3StaticDll_LIBS.amd64)))6949 TEMPLATE_VBoxR3StaticDllNoAsan_CFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_CFLAGS)) 6950 TEMPLATE_VBoxR3StaticDllNoAsan_CXXFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_CXXFLAGS)) 6951 TEMPLATE_VBoxR3StaticDllNoAsan_PCHFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_FLAGS) , $(TEMPLATE_VBoxR3StaticDll_PCHFLAGS)) 6952 TEMPLATE_VBoxR3StaticDllNoAsan_LDFLAGS = $(filter-out $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3StaticDll_LDFLAGS)) -InferAsanLibs:No 6953 TEMPLATE_VBoxR3StaticDllNoAsan_LATE_LIBS.x86 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan_dll_thunk-i386.lib, $(TEMPLATE_VBoxR3StaticDll_LATE_LIBS.x86))) 6954 TEMPLATE_VBoxR3StaticDllNoAsan_LATE_LIBS.amd64 = $(subst $(VBOX_LIB_RUNTIME_STATIC),$(VBOX_LIB_RUNTIME_STATIC_NO_ASAN),$(filter-out %clang_rt.asan_dll_thunk-x86_64.lib, $(TEMPLATE_VBoxR3StaticDll_LATE_LIBS.amd64))) 6955 6955 endif 6956 6956 … … 6981 6981 # Note! Not compatible with BLD_TRG_ARCH overrides yet. 6982 6982 # 6983 TEMPLATE_VBoxR3StaticNoCrt = Static6984 TEMPLATE_VBoxR3StaticNoCrt_EXTENDS = VBoxR3Static6985 TEMPLATE_VBoxR3StaticNoCrt_SDKS = $(subst WINSDK10-UCRT$(VBOX_VCC_CRT_TYPE_UPPER)-STATIC,WINSDK10-UCRT-INCS, $(TEMPLATE_VBoxR3Static_SDKS))6983 TEMPLATE_VBoxR3StaticNoCrt = Static 6984 TEMPLATE_VBoxR3StaticNoCrt_EXTENDS = VBoxR3Static 6985 TEMPLATE_VBoxR3StaticNoCrt_SDKS = $(subst WINSDK10-UCRT$(VBOX_VCC_CRT_TYPE_UPPER)-STATIC,WINSDK10-UCRT-INCS, $(TEMPLATE_VBoxR3Static_SDKS)) 6986 6986 TEMPLATE_VBoxR3StaticNoCrt_SDKS.$(KBUILD_TARGET_ARCH) = $(filter-out VBoxOpenSslStatic,$(TEMPLATE_VBoxR3Static_SDKS.$(KBUILD_TARGET_ARCH))) 6987 TEMPLATE_VBoxR3StaticNoCrt_DEFS = $(TEMPLATE_VBoxR3Static_DEFS) \6987 TEMPLATE_VBoxR3StaticNoCrt_DEFS = $(TEMPLATE_VBoxR3Static_DEFS) \ 6988 6988 RT_NO_CRT \ 6989 6989 IN_RT_STATIC 6990 6990 ifndef VBOX_WITH_NOCRT_STATIC 6991 TEMPLATE_VBoxR3StaticNoCrt_DEFS.win = $(TEMPLATE_VBoxR3Static_DEFS.win) \6991 TEMPLATE_VBoxR3StaticNoCrt_DEFS.win = $(TEMPLATE_VBoxR3Static_DEFS.win) \ 6992 6992 RT_WITHOUT_NOCRT_WRAPPERS 6993 6993 endif 6994 TEMPLATE_VBoxR3StaticNoCrt_L IBS= \6994 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS = \ 6995 6995 $(PATH_STAGE_LIB)/RuntimeR3NoCrt$(VBOX_SUFF_LIB) 6996 6996 ifeq ($(KBUILD_TARGET),win) 6997 TEMPLATE_VBoxR3StaticNoCrt_L IBS.x86= $(NO_SUCH_VARIABLE)6998 TEMPLATE_VBoxR3StaticNoCrt_L IBS.amd64= $(NO_SUCH_VARIABLE)6999 TEMPLATE_VBoxR3StaticNoCrt_L IBS.arm64= $(NO_SUCH_VARIABLE)7000 TEMPLATE_VBoxR3StaticNoCrt_L IBS.win= $(NO_SUCH_VARIABLE)6997 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.x86 = $(NO_SUCH_VARIABLE) 6998 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.amd64 = $(NO_SUCH_VARIABLE) 6999 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.arm64 = $(NO_SUCH_VARIABLE) 7000 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.win = $(NO_SUCH_VARIABLE) 7001 7001 ifdef VBOX_WITH_NOCRT_STATIC 7002 TEMPLATE_VBoxR3StaticNoCrt_L IBS.$(KBUILD_TARGET_ARCH) = \7002 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.$(KBUILD_TARGET_ARCH) = \ 7003 7003 $(PATH_STAGE_LIB)/RuntimeR3NoCrt$(VBOX_SUFF_LIB) 7004 7004 ifneq ($(KBUILD_TARGET_ARCH),x86) 7005 TEMPLATE_VBoxR3StaticNoCrt_L IBS.x86= \7005 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.x86 = \ 7006 7006 $(PATH_STAGE_LIB)/RuntimeR3NoCrt-x86$(VBOX_SUFF_LIB) # place holder, we don't have this library 7007 7007 endif 7008 7008 else 7009 TEMPLATE_VBoxR3StaticNoCrt_L IBS.win.x86= \7009 TEMPLATE_VBoxR3StaticNoCrt_LATE_LIBS.win.x86 = \ 7010 7010 $(PATH_TOOL_$(TEMPLATE_VBoxR3StaticNoCrt_TOOL.win.x86)_LIB)/chkstk.obj 7011 7011 endif 7012 TEMPLATE_VBoxR3StaticNoCrt_LDFLAGS = $(filter-out $(VBOX_VCC_LD_GUARD_CF) $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3Static_LDFLAGS))7012 TEMPLATE_VBoxR3StaticNoCrt_LDFLAGS = $(filter-out $(VBOX_VCC_LD_GUARD_CF) $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxR3Static_LDFLAGS)) 7013 7013 TEMPLATE_VBoxR3StaticNoCrt_LDFLAGS.win.x86 = $(filter-out -Include%, $(TEMPLATE_VBoxR3Static_LDFLAGS.win.x86)) 7014 TEMPLATE_VBoxR3StaticNoCrt_CFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_CFLAGS)) /GS- -EHs-7015 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_CXXFLAGS)) /GS- -EHs-7016 TEMPLATE_VBoxR3StaticNoCrt_PCHFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_PCHFLAGS)) /GS- -EHs-7017 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS.debug = $(filter-out /RTC% -RTC%, $(TEMPLATE_VBoxR3Static_CXXFLAGS.debug))7014 TEMPLATE_VBoxR3StaticNoCrt_CFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_CFLAGS)) /GS- -EHs- 7015 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_CXXFLAGS)) /GS- -EHs- 7016 TEMPLATE_VBoxR3StaticNoCrt_PCHFLAGS = $(filter-out -EH% -GS $(VBOX_VCC_CC_GUARD_CF) $(VBOX_VCC_SANITIZER_FLAGS),$(TEMPLATE_VBoxR3Static_PCHFLAGS)) /GS- -EHs- 7017 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS.debug = $(filter-out /RTC% -RTC%, $(TEMPLATE_VBoxR3Static_CXXFLAGS.debug)) 7018 7018 else 7019 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS = $(TEMPLATE_VBoxR3Static_CXXFLAGS) -fno-exceptions7020 TEMPLATE_VBoxR3StaticNoCrt_PCHFLAGS = $(TEMPLATE_VBoxR3Static_PCHFLAGS) -fno-exceptions7019 TEMPLATE_VBoxR3StaticNoCrt_CXXFLAGS = $(TEMPLATE_VBoxR3Static_CXXFLAGS) -fno-exceptions 7020 TEMPLATE_VBoxR3StaticNoCrt_PCHFLAGS = $(TEMPLATE_VBoxR3Static_PCHFLAGS) -fno-exceptions 7021 7021 endif 7022 7022 … … 7041 7041 TEMPLATE_VBoxR3HardenedExe_DEFS = $(TEMPLATE_VBoxR3Exe_DEFS) RTMEM_NO_WRAP_TO_EF_APIS 7042 7042 ifdef VBOX_WITH_HARDENING 7043 TEMPLATE_VBoxR3HardenedExe_L IBS = $(VBOX_LIB_SUPHARDENED) $(TEMPLATE_VBoxR3Exe_LIBS)7043 TEMPLATE_VBoxR3HardenedExe_LATE_LIBS = $(VBOX_LIB_SUPHARDENED) $(TEMPLATE_VBoxR3Exe_LATE_LIBS) 7044 7044 else 7045 TEMPLATE_VBoxR3HardenedExe_L IBS = $(TEMPLATE_VBoxR3Exe_LIBS)7045 TEMPLATE_VBoxR3HardenedExe_LATE_LIBS = $(TEMPLATE_VBoxR3Exe_LATE_LIBS) 7046 7046 endif 7047 7047 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Exe_LDFLAGS.darwin) -framework IOKit 7048 7048 ifeq ($(KBUILD_TARGET),linux) 7049 7049 # not necessary except USE_LIB_PCAP is defined in SUPR3HardenedMain.cpp 7050 # TEMPLATE_VBoxR3HardenedExe_L IBS += cap7050 # TEMPLATE_VBoxR3HardenedExe_LATE_LIBS += cap 7051 7051 endif 7052 7052 ifeq ($(KBUILD_TARGET),win) # No CRT! … … 7072 7072 /DISALLOWLIB:vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 7073 7073 /DISALLOWLIB:ucrt$(VBOX_VCC_CRT_TYPE).lib 7074 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.x86) /entry:suplibHardenedWindowsMain7075 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.amd64 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.amd64) /entry:suplibHardenedWindowsMain7076 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.arm64 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.arm64) /entry:suplibHardenedWindowsMain7077 TEMPLATE_VBoxR3HardenedExe_L IBS.x86= $(NOT_SUCH_VARIABLE)7078 TEMPLATE_VBoxR3HardenedExe_L IBS.amd64= $(NOT_SUCH_VARIABLE)7079 TEMPLATE_VBoxR3HardenedExe_L IBS.arm64= $(NOT_SUCH_VARIABLE)7080 TEMPLATE_VBoxR3HardenedExe_USES.win = $(TEMPLATE_VBoxR3Exe_USES.win) vboximportchecker7074 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.x86 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.x86) /entry:suplibHardenedWindowsMain 7075 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.amd64 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.amd64) /entry:suplibHardenedWindowsMain 7076 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.win.arm64 = $(TEMPLATE_VBoxR3Exe_LDFLAGS.win.arm64) /entry:suplibHardenedWindowsMain 7077 TEMPLATE_VBoxR3HardenedExe_LATE_LIBS.x86 = $(NOT_SUCH_VARIABLE) 7078 TEMPLATE_VBoxR3HardenedExe_LATE_LIBS.amd64 = $(NOT_SUCH_VARIABLE) 7079 TEMPLATE_VBoxR3HardenedExe_LATE_LIBS.arm64 = $(NOT_SUCH_VARIABLE) 7080 TEMPLATE_VBoxR3HardenedExe_USES.win = $(TEMPLATE_VBoxR3Exe_USES.win) vboximportchecker 7081 7081 TEMPLATE_VBoxR3HardenedExe_VBOX_IMPORT_CHECKER.win = noimports 7082 7082 else ifn1of ($(KBUILD_TARGET), os2) 7083 7083 ifneq ($(KBUILD_TYPE),asan) # Keep RPATH in asan builds so we can find libasan.so.X and libubsan.so.Y. 7084 TEMPLATE_VBoxR3HardenedExe_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBoxR3Exe_LDFLAGS))7085 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBoxR3Exe_LDFLAGS.linux))7084 TEMPLATE_VBoxR3HardenedExe_LDFLAGS = $(filter-out '$(VBOX_GCC_RPATH_OPT)%,$(TEMPLATE_VBoxR3Exe_LDFLAGS)) 7085 TEMPLATE_VBoxR3HardenedExe_LDFLAGS.linux = $(filter-out $(VBOX_GCC_ORIGIN_OPT),$(TEMPLATE_VBoxR3Exe_LDFLAGS.linux)) 7086 7086 endif 7087 7087 endif … … 7092 7092 TEMPLATE_VBoxR3HardenedLib = Hardened VBox Ring-3 LIB 7093 7093 TEMPLATE_VBoxR3HardenedLib_EXTENDS = VBoxR3HardenedExe 7094 TEMPLATE_VBoxR3HardenedLib_LATE_LIBS = $(NO_SUCH_VARIABLE) 7094 7095 TEMPLATE_VBoxR3HardenedLib_LIBS = $(NO_SUCH_VARIABLE) 7095 7096 TEMPLATE_VBoxR3HardenedLib_USES.win = $(NO_SUCH_VARIABLE) … … 7128 7129 TEMPLATE_VBoxR3SetUidToRoot_LDFLAGS = $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS) 7129 7130 endif 7130 TEMPLATE_VBoxR3SetUidToRoot_LIBS = $(NO_SUCH_VARIABLE) 7131 TEMPLATE_VBoxR3SetUidToRoot_LIBS = $(NO_SUCH_VARIABLE) 7132 TEMPLATE_VBoxR3SetUidToRoot_LATE_LIBS = $(NO_SUCH_VARIABLE) 7131 7133 ifdef VBOX_WITH_RUNPATH 7132 7134 TEMPLATE_VBoxR3SetUidToRoot_LDFLAGS += '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' … … 7162 7164 endif 7163 7165 endif 7164 TEMPLATE_VBoxR3Tool_L IBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LIBS)7166 TEMPLATE_VBoxR3Tool_LATE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LATE_LIBS) 7165 7167 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" 7166 TEMPLATE_VBoxR3Tool_L IBS.x86 = \7168 TEMPLATE_VBoxR3Tool_LATE_LIBS.x86 = \ 7167 7169 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) \ 7168 7170 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib … … 7187 7189 endif 7188 7190 TEMPLATE_VBoxR3AutoTest_INST = $(INST_TESTCASE) 7189 TEMPLATE_VBoxR3AutoTest_L IBS.$(KBUILD_TARGET_ARCH) = $(filter-out \7191 TEMPLATE_VBoxR3AutoTest_LATE_LIBS.$(KBUILD_TARGET_ARCH) = $(filter-out \ 7190 7192 $(if-expr !defined(SDK_VBoxLibXml2_LIBS),$(PATH_STAGE_LIB)/VBox-libxml2-static$(VBOX_SUFF_LIB),) \ 7191 7193 $(if-expr "$(KBUILD_TARGET)" == "win" || "$(KBUILD_TARGET)" == "os2" \ 7192 ,$(SDK_VBoxLzf _STATIC_LIBS) $(SDK_VBoxZlibStatic_LIBS) $(SDK_VBoxLibLzmaStatic_LIBS) \7194 ,$(SDK_VBoxLzfStatic_LIBS) $(SDK_VBoxZlibStatic_LIBS) $(SDK_VBoxLibLzmaStatic_LIBS) \ 7193 7195 ,$(SDK_VBoxLzf_LIBS) $(SDK_VBoxZlib_LIBS) $(SDK_VBoxLibLzma_LIBS)) \ 7194 ,$(TEMPLATE_$(TEMPLATE_VBoxR3AutoTest_EXTENDS)_L IBS.$(KBUILD_TARGET_ARCH)))7196 ,$(TEMPLATE_$(TEMPLATE_VBoxR3AutoTest_EXTENDS)_LATE_LIBS.$(KBUILD_TARGET_ARCH))) 7195 7197 7196 7198 # … … 7198 7200 # This is the VBoxR3Exe template only with a different install dir. 7199 7201 # 7200 TEMPLATE_VBoxR3TstExe = VBox Ring 3 Testcase Exe7201 TEMPLATE_VBoxR3TstExe_EXTENDS = VBoxR3Exe7202 TEMPLATE_VBoxR3TstExe_L IBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LIBS)7203 TEMPLATE_VBoxR3TstExe_INST = $(INST_TESTCASE)7202 TEMPLATE_VBoxR3TstExe = VBox Ring 3 Testcase Exe 7203 TEMPLATE_VBoxR3TstExe_EXTENDS = VBoxR3Exe 7204 TEMPLATE_VBoxR3TstExe_LATE_LIBS = $(LIB_RUNTIME) $(TEMPLATE_VBoxR3Exe_LATE_LIBS) 7205 TEMPLATE_VBoxR3TstExe_INST = $(INST_TESTCASE) 7204 7206 ifdef VBOX_WITH_RUNPATH 7205 TEMPLATE_VBoxR3TstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBoxR3Exe_LDFLAGS)7207 TEMPLATE_VBoxR3TstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RUNPATH)' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 7206 7208 else ifdef VBOX_WITH_RELATIVE_RUNPATH 7207 TEMPLATE_VBoxR3TstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBoxR3Exe_LDFLAGS)7209 TEMPLATE_VBoxR3TstExe_LDFLAGS = '$(VBOX_GCC_RPATH_OPT)$(VBOX_WITH_RELATIVE_RUNPATH)/..' $(TEMPLATE_VBoxR3Exe_LDFLAGS) 7208 7210 endif 7209 7211 if "$(KBUILD_TARGET)" == "win" && defined(VBOX_SIGNING_MODE) … … 7213 7215 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" 7214 7216 TEMPLATE_VBoxR3TstExe_POST_CMDS.win.x86 = $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_PE_SET_VERSION) $(out)) 7215 TEMPLATE_VBoxR3TstExe_L IBS.x86 = \7217 TEMPLATE_VBoxR3TstExe_LATE_LIBS.x86 = \ 7216 7218 $(PATH_STAGE_LIB)/RuntimeR3VccTricks2$(VBOX_SUFF_LIB) \ 7217 7219 $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/oldnames.lib … … 7222 7224 TEMPLATE_VBoxR3TstExe-x86_EXTENDS := VBoxR3TstExe 7223 7225 TEMPLATE_VBoxR3TstExe-x86_BLD_TRG_ARCH := x86 7224 TEMPLATE_VBoxR3TstExe-x86_L IBS = $(LIB_RUNTIME_X86) $(TEMPLATE_VBoxR3Exe_LIBS)7226 TEMPLATE_VBoxR3TstExe-x86_LATE_LIBS = $(LIB_RUNTIME_X86) $(TEMPLATE_VBoxR3Exe_LATE_LIBS) 7225 7227 7226 7228 # … … 7298 7300 TEMPLATE_VBoxR3RuntimeDll_CXXFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Dll_CXXFLAGS)) -MT$(VBOX_VCC_CRT_TYPE) 7299 7301 TEMPLATE_VBoxR3RuntimeDll_PCHFLAGS = $(filter-out -MD$(VBOX_VCC_CRT_TYPE), $(TEMPLATE_VBoxR3Dll_PCHFLAGS)) -MT$(VBOX_VCC_CRT_TYPE) 7300 TEMPLATE_VBoxR3RuntimeDll_L IBS.x86 = $(filter-out $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/%, $(TEMPLATE_VBoxR3Dll_LIBS.x86)) \7302 TEMPLATE_VBoxR3RuntimeDll_LATE_LIBS.x86 = $(filter-out $(PATH_TOOL_$(TEMPLATE_VBoxR3Exe_TOOL.win.x86)_LIB)/%, $(TEMPLATE_VBoxR3Dll_LATE_LIBS.x86)) \ 7301 7303 $(PATH_TOOL_$(TEMPLATE_VBoxR3RuntimeDll_TOOL.win.x86)_LIB)/oldnames.lib \ 7302 7304 $(PATH_TOOL_$(TEMPLATE_VBoxR3RuntimeDll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 7366 7368 TEMPLATE_VBoxMainExe_DEFS.win = _UNICODE 7367 7369 TEMPLATE_VBoxMainExe_RCDEFS = $(TEMPLATE_VBoxR3Exe_RCDEFS) 7368 TEMPLATE_VBoxMainExe_L IBS.kprofile= $(LIB_KPROFILE)7370 TEMPLATE_VBoxMainExe_LATE_LIBS.kprofile = $(LIB_KPROFILE) 7369 7371 TEMPLATE_VBoxMainExe_USES = dtrace 7370 7372 if defined(VBOX_WITH_DTRACE_R3_MAIN) && defined(VBOX_WITH_NATIVE_DTRACE) … … 7446 7448 endif 7447 7449 TEMPLATE_VBoxMainExe_LDFLAGS.win.amd64 = $(VBOX_VCC_LD_HIGH_ENTRYOPY_VA) 7448 TEMPLATE_VBoxMainExe_L IBS= \7450 TEMPLATE_VBoxMainExe_LATE_LIBS = \ 7449 7451 $(LIB_RUNTIME) 7450 7452 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 7451 TEMPLATE_VBoxMainExe_L IBS.x86= \7453 TEMPLATE_VBoxMainExe_LATE_LIBS.x86 = \ 7452 7454 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 7453 7455 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 7454 7456 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 7455 7457 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/oldnames.lib 7456 TEMPLATE_VBoxMainExe_L IBS.amd64= \7458 TEMPLATE_VBoxMainExe_LATE_LIBS.amd64 = \ 7457 7459 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 7458 7460 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 7459 7461 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 7460 7462 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/oldnames.lib 7461 TEMPLATE_VBoxMainExe_L IBS.arm64= \7463 TEMPLATE_VBoxMainExe_LATE_LIBS.arm64 = \ 7462 7464 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/vcruntime$(VBOX_VCC_CRT_TYPE).lib \ 7463 7465 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ … … 7465 7467 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.arm64)_LIB)/oldnames.lib 7466 7468 ifeq ($(KBUILD_TYPE),asan) 7467 TEMPLATE_VBoxMainExe_L IBS.x86+= \7469 TEMPLATE_VBoxMainExe_LATE_LIBS.x86 += \ 7468 7470 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic-i386.lib \ 7469 7471 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/clang_rt.asan_dynamic_runtime_thunk-i386.lib 7470 TEMPLATE_VBoxMainExe_L IBS.amd64+= \7472 TEMPLATE_VBoxMainExe_LATE_LIBS.amd64 += \ 7471 7473 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic-x86_64.lib \ 7472 7474 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib 7473 7475 endif 7474 7476 else 7475 TEMPLATE_VBoxMainExe_L IBS.x86= \7477 TEMPLATE_VBoxMainExe_LATE_LIBS.x86 = \ 7476 7478 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 7477 7479 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ 7478 7480 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.x86)_LIB)/oldnames.lib 7479 TEMPLATE_VBoxMainExe_L IBS.amd64= \7481 TEMPLATE_VBoxMainExe_LATE_LIBS.amd64 = \ 7480 7482 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/msvcrt$(VBOX_VCC_CRT_TYPE).lib \ 7481 7483 $(PATH_TOOL_$(TEMPLATE_VBoxMainExe_TOOL.win.amd64)_LIB)/msvcprt$(VBOX_VCC_CRT_TYPE).lib \ … … 7537 7539 TEMPLATE_VBoxMainExe_LDFLAGS.amd64 = -m64 7538 7540 ifeq ($(KBUILD_TARGET),linux) 7539 TEMPLATE_VBoxMainExe_L IBS= pthread m rt $(LIB_RUNTIME) dl7541 TEMPLATE_VBoxMainExe_LATE_LIBS = pthread m rt $(LIB_RUNTIME) dl 7540 7542 TEMPLATE_VBoxMainExe_LDFLAGS.linux = -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed) 7541 7543 else ifeq ($(KBUILD_TARGET),os2) 7542 7544 TEMPLATE_VBoxMainExe_TOOL = GXX3OMF 7543 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME)7545 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) 7544 7546 else ifeq ($(KBUILD_TARGET),darwin) 7545 7547 TEMPLATE_VBoxMainExe_TOOL = $(VBOX_GCC_TOOL) … … 7552 7554 TEMPLATE_VBoxMainExe_LDFLAGS.darwin += -bind_at_load 7553 7555 TEMPLATE_VBoxMainExe_LDFLAGS += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -framework Carbon -Wl,-headerpad_max_install_names 7554 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME)7556 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) 7555 7557 TEMPLATE_VBoxMainExe_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS) 7556 7558 else ifeq ($(KBUILD_TARGET),haiku) 7557 7559 TEMPLATE_VBoxMainExe_TOOL = GXX3 7558 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME) network stdc++ supc++7560 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) network stdc++ supc++ 7559 7561 else if1of ($(KBUILD_TARGET), freebsd openbsd) 7560 7562 TEMPLATE_VBoxMainExe_TOOL = GXX3 7561 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME)7563 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) 7562 7564 TEMPLATE_VBoxMainExe_INCS += \ 7563 7565 /usr/include \ … … 7570 7572 else ifeq ($(KBUILD_TARGET),netbsd) 7571 7573 TEMPLATE_VBoxMainExe_TOOL = GXX3 7572 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME)7574 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) 7573 7575 TEMPLATE_VBoxMainExe_INCS += \ 7574 7576 /usr/include \ … … 7580 7582 TEMPLATE_VBoxMainExe_TOOL = GXX3PLAIN 7581 7583 TEMPLATE_VBoxMainExe_DEFS += _REENTRANT 7582 TEMPLATE_VBoxMainExe_L IBS= $(LIB_RUNTIME) rt thread7584 TEMPLATE_VBoxMainExe_LATE_LIBS = $(LIB_RUNTIME) rt thread 7583 7585 else 7584 $(warning Warning: VB OX Build: Target $(KBUILD_TARGET) is not officially supported!)7585 TEMPLATE_VBoxMainExe_L IBS=7586 $(warning Warning: VBox Build: Target $(KBUILD_TARGET) is not officially supported and may need TEMPLATE_VBoxMainExe tweaking!) 7587 TEMPLATE_VBoxMainExe_LATE_LIBS = 7586 7588 endif 7587 7589 TEMPLATE_VBoxMainExe_LDFLAGS.solaris = -Wl,-z,ignore # Same as VBOX_LD_as_needed. … … 7598 7600 7599 7601 # Add COM/XPCOM stuff 7600 TEMPLATE_VBoxMainExe_L IBS+= \7602 TEMPLATE_VBoxMainExe_LATE_LIBS += \ 7601 7603 $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB) 7602 7604 ifdef VBOX_WITH_XPCOM … … 7608 7610 TEMPLATE_VBoxMainExe_INCS += \ 7609 7611 $(VBOX_XPCOM_INCS) 7610 TEMPLATE_VBoxMainExe_L IBS+= \7612 TEMPLATE_VBoxMainExe_LATE_LIBS += \ 7611 7613 $(LIB_XPCOM) 7612 7614 TEMPLATE_VBoxMainExe_INTERMEDIATES += \ … … 7682 7684 TEMPLATE_VBoxMainComp-x86_DEFS = $(filter-out HC_ARCH_BITS%,$(TEMPLATE_VBoxMainComp_DEFS)) HC_ARCH_BIT=32 ARCH_BITS=32 \ 7683 7685 VBOX_IN_32_ON_64_MAIN_API 7684 TEMPLATE_VBoxMainComp-x86_L IBS = \7686 TEMPLATE_VBoxMainComp-x86_LATE_LIBS = \ 7685 7687 $(subst $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/VBoxCOM-x86$(VBOX_SUFF_LIB), \ 7686 7688 $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86), \ 7687 7689 $(subst $(LIB_XPCOM),$(VBOX_LIB_XPCOM_X86), \ 7688 $(TEMPLATE_VBoxMainComp_L IBS))))7690 $(TEMPLATE_VBoxMainComp_LATE_LIBS)))) 7689 7691 7690 7692 … … 7692 7694 # Template for building the Main static libraries. 7693 7695 # 7694 # This differs from VBoxMainDll only that it zeroes out the _L IBS definition.7696 # This differs from VBoxMainDll only that it zeroes out the _LATE_LIBS definition. 7695 7697 # 7696 7698 TEMPLATE_VBoxMainLib = VBox Main Component (static library) 7697 7699 TEMPLATE_VBoxMainLib_EXTENDS = VBoxMainDll 7698 TEMPLATE_VBoxMainLib_L IBS =7700 TEMPLATE_VBoxMainLib_LATE_LIBS = $(NO_SUCH_VARIABLE) 7699 7701 7700 7702 TEMPLATE_VBoxMainLib-x86 = 32-bit VBox Main Component (static library) … … 7727 7729 ifeq ($(KBUILD_TARGET),win) 7728 7730 TEMPLATE_VBoxMainClientExe_DEPS = $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h 7729 TEMPLATE_VBoxMainClientExe_L IBS.win = $(TEMPLATE_VBoxMainExe_LIBS.win) \7731 TEMPLATE_VBoxMainClientExe_LATE_LIBS.win = $(TEMPLATE_VBoxMainExe_LATE_LIBS.win) \ 7730 7732 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/User32.Lib \ 7731 7733 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Shell32.Lib \ … … 7765 7767 TEMPLATE_VBoxMainClientDll-x86_DEFS = $(filter-out HC_ARCH_BITS%,$(TEMPLATE_VBoxMainClientDll_DEFS)) \ 7766 7768 HC_ARCH_BIT=32 ARCH_BITS=32 VBOX_IN_32_ON_64_MAIN_API 7767 TEMPLATE_VBoxMainClientDll-x86_L IBS = \7769 TEMPLATE_VBoxMainClientDll-x86_LATE_LIBS = \ 7768 7770 $(subst $(PATH_STAGE_LIB)/VBoxCOM$(VBOX_SUFF_LIB),$(PATH_STAGE_LIB)/VBoxCOM-x86$(VBOX_SUFF_LIB), \ 7769 7771 $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86), \ 7770 7772 $(subst $(LIB_XPCOM),$(VBOX_LIB_XPCOM_X86), \ 7771 $(TEMPLATE_VBoxMainClientDll_L IBS))))7773 $(TEMPLATE_VBoxMainClientDll_LATE_LIBS)))) 7772 7774 7773 7775 # … … 7814 7816 ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS 7815 7817 if1of ($(KBUILD_TARGET), win os2) 7816 TEMPLATE_VBoxR3ExtPack_L IBS = \7818 TEMPLATE_VBoxR3ExtPack_LATE_LIBS = \ 7817 7819 $(PATH_STAGE_LIB)/VBoxRTImp$(VBOX_SUFF_LIB) 7818 7820 else 7819 TEMPLATE_VBoxR3ExtPack_L IBS = \7821 TEMPLATE_VBoxR3ExtPack_LATE_LIBS = \ 7820 7822 $(PATH_STAGE_LIB)/VBoxRTImp$(VBOX_SUFF_DLL) 7821 7823 endif 7822 7824 else 7823 TEMPLATE_VBoxR3ExtPack_L IBS = \7825 TEMPLATE_VBoxR3ExtPack_LATE_LIBS = \ 7824 7826 $(LIB_RUNTIME) 7825 7827 endif … … 7839 7841 ifdef VBOX_ONLY_EXTPACKS_USE_IMPLIBS 7840 7842 if1of ($(KBUILD_TARGET), win os2) 7841 TEMPLATE_VBoxR3ExtPackApi_L IBS = \7843 TEMPLATE_VBoxR3ExtPackApi_LATE_LIBS = \ 7842 7844 $(PATH_STAGE_LIB)/VBoxRTImp$(VBOX_SUFF_LIB) 7843 7845 else 7844 TEMPLATE_VBoxR3ExtPackApi_L IBS = \7846 TEMPLATE_VBoxR3ExtPackApi_LATE_LIBS = \ 7845 7847 $(PATH_STAGE_LIB)/VBoxRTImp$(VBOX_SUFF_DLL) 7846 7848 endif 7847 7849 else 7848 TEMPLATE_VBoxR3ExtPackApi_L IBS = \7850 TEMPLATE_VBoxR3ExtPackApi_LATE_LIBS = \ 7849 7851 $(LIB_RUNTIME) 7850 7852 endif … … 7859 7861 TEMPLATE_VBoxR0ExtPack_DEFS = VBOX_IN_EXTPACK VBOX_IN_EXTPACK_R0 7860 7862 if1of ($(VBOX_LDR_FMT), pe lx) 7861 TEMPLATE_VBoxR0ExtPack_L IBS = \7863 TEMPLATE_VBoxR0ExtPack_LATE_LIBS = \ 7862 7864 $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) 7863 7865 endif 7864 TEMPLATE_VBoxR0ExtPack_L IBS += \7866 TEMPLATE_VBoxR0ExtPack_LATE_LIBS += \ 7865 7867 $(VBOX_LIB_SUPR0) 7866 7868 … … 7872 7874 TEMPLATE_VBoxRcExtPack_DEFS = VBOX_IN_EXTPACK VBOX_IN_EXTPACK_RC 7873 7875 if1of ($(VBOX_LDR_FMT32), pe lx) 7874 TEMPLATE_VBoxRcExtPack_L IBS = \7876 TEMPLATE_VBoxRcExtPack_LATE_LIBS = \ 7875 7877 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \ 7876 7878 $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB) … … 8141 8143 TEMPLATE_VBoxQtGuiExe_SDKS += $(VBOX_WINPSDK) 8142 8144 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 8143 TEMPLATE_VBoxQtGuiExe_L IBS = \8145 TEMPLATE_VBoxQtGuiExe_LATE_LIBS = \ 8144 8146 $(VBOX_LIBS_QT) \ 8145 8147 $(LIB_RUNTIME) \ … … 8150 8152 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib 8151 8153 ifeq ($(KBUILD_TYPE),asan) 8152 TEMPLATE_VBoxQtGuiExe_L IBS += \8154 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8153 8155 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/clang_rt.asan_dynamic-x86_64.lib \ 8154 8156 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/clang_rt.asan_dynamic_runtime_thunk-x86_64.lib 8155 8157 endif 8156 8158 else 8157 TEMPLATE_VBoxQtGuiExe_L IBS = \8159 TEMPLATE_VBoxQtGuiExe_LATE_LIBS = \ 8158 8160 $(VBOX_LIBS_QT) \ 8159 8161 $(LIB_RUNTIME) \ … … 8211 8213 TEMPLATE_VBoxQtGuiExe_LDFLAGS.x86 = -m32 8212 8214 TEMPLATE_VBoxQtGuiExe_LDFLAGS.amd64 = -m64 8213 TEMPLATE_VBoxQtGuiExe_L IBS = \8215 TEMPLATE_VBoxQtGuiExe_LATE_LIBS = \ 8214 8216 $(VBOX_LIBS_QT) \ 8215 8217 $(LIB_RUNTIME) … … 8218 8220 TEMPLATE_VBoxQtGuiExe_LDFLAGS += -Wl,-z,noexecstack,-z,relro $(VBOX_LD_as_needed) 8219 8221 TEMPLATE_VBOXQTGUIEXE_LDFLAGS += -Wl,-rpath,$(PATH_SDK_QT6_LIB) 8220 TEMPLATE_VBoxQtGuiExe_L IBS += \8222 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8221 8223 $(VBOX_XCURSOR_LIBS) \ 8222 8224 Xext \ … … 8233 8235 TEMPLATE_VBoxQtGuiExe_OBJCXXFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_OBJCXXFLAGS) 8234 8236 TEMPLATE_VBoxQtGuiExe_LDFLAGS.darwin += $(VBOX_DARWIN_DEF_SDK_LDFLAGS) -bind_at_load -Wl,-headerpad_max_install_names 8235 TEMPLATE_VBoxQtGuiExe_L IBS +=8237 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += 8236 8238 TEMPLATE_VBoxQtGuiExe_LIBPATH += 8237 8239 TEMPLATE_VBoxQtGuiExe_POST_CMDS.darwin = $(VBOX_SIGN_IMAGE_CMDS) … … 8239 8241 TEMPLATE_VBoxQtGuiExe_INCS += \ 8240 8242 $(VBOX_XCURSOR_INCS) 8241 TEMPLATE_VBoxQtGuiExe_L IBS += \8242 $(VBOX_XCURSOR_L IBS) \8243 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8244 $(VBOX_XCURSOR_LATE_LIBS) \ 8243 8245 Xext \ 8244 8246 X11 \ … … 8259 8261 ifeq ($(KBUILD_TARGET),solaris) 8260 8262 TEMPLATE_VBoxQtGuiExe_LDFLAGS.solaris = -Wl,-z,ignore # Same as VBOX_LD_as_needed. 8261 TEMPLATE_VBoxQtGuiExe_L IBS += \8263 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8262 8264 rt socket nsl 8263 8265 endif … … 8273 8275 8274 8276 # Add COM/XPCOM stuff 8275 TEMPLATE_VBoxQtGuiExe_L IBS += \8277 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8276 8278 $(PATH_STAGE_LIB)/VBoxCOM$(if-expr "$(VBOX_QT_DBG)" != "$(VBOX_VCC_CRT_TYPE)" && $(KBUILD_TARGET) == win,-GUI,)$(VBOX_SUFF_LIB) 8277 8279 ifdef VBOX_WITH_XPCOM … … 8283 8285 TEMPLATE_VBoxQtGuiExe_INCS += \ 8284 8286 $(VBOX_XPCOM_INCS) 8285 TEMPLATE_VBoxQtGuiExe_L IBS += \8287 TEMPLATE_VBoxQtGuiExe_LATE_LIBS += \ 8286 8288 $(LIB_XPCOM) 8287 8289 TEMPLATE_VBoxQtGuiExe_INTERMEDIATES += \ … … 8315 8317 TEMPLATE_VBoxQtGuiDll = VBox Qt GUI Components 8316 8318 TEMPLATE_VBoxQtGuiDll_EXTENDS = VBoxQtGuiExe 8317 TEMPLATE_VBoxQtGuiDll_L IBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBoxQtGuiExe_LIBS))8319 TEMPLATE_VBoxQtGuiDll_LATE_LIBS = $(filter-out $(QTMAIN),$(TEMPLATE_VBoxQtGuiExe_LATE_LIBS)) 8318 8320 ifeq ($(KBUILD_TARGET),darwin) 8319 8321 TEMPLATE_VBoxQtGuiDll_LDFLAGS.darwin += $(filter-out -bind_at_load,$(TEMPLATE_VBoxQtGuiExe_LDFLAGS.darwin)) \ … … 8349 8351 TEMPLATE_VBoxNLS_SDKS.$(KBUILD_TARGET_ARCH) = $(filter-out VBoxOpenSslStatic,$(TEMPLATE_VBoxR3Static_SDKS.$(KBUILD_TARGET_ARCH))) 8350 8352 ifdef VBOX_WITH_NOCRT_STATIC 8351 TEMPLATE_VBoxNLS_L IBS.$(KBUILD_TARGET_ARCH) = $(filter-out \8353 TEMPLATE_VBoxNLS_LATE_LIBS.$(KBUILD_TARGET_ARCH) = $(filter-out \ 8352 8354 $(PATH_STAGE_LIB)/VBox-libxml2-static$(VBOX_SUFF_LIB), \ 8353 $(TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH)))8355 $(TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH))) 8354 8356 else 8355 TEMPLATE_VBoxNLS_L IBS.$(KBUILD_TARGET_ARCH) = $(filter-out \8357 TEMPLATE_VBoxNLS_LATE_LIBS.$(KBUILD_TARGET_ARCH) = $(filter-out \ 8356 8358 $(VBOX_LIB_RUNTIME_STATIC) \ 8357 8359 $(PATH_STAGE_LIB)/VBox-libxml2-static$(VBOX_SUFF_LIB), \ 8358 $(TEMPLATE_VBoxR3Static_L IBS.$(KBUILD_TARGET_ARCH)))8360 $(TEMPLATE_VBoxR3Static_LATE_LIBS.$(KBUILD_TARGET_ARCH))) 8359 8361 endif 8360 8362 endif # !VBOX_WITH_NLS … … 8439 8441 endif 8440 8442 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140" 8441 TEMPLATE_VBoxBldProg_L IBS= \8443 TEMPLATE_VBoxBldProg_LATE_LIBS = \ 8442 8444 $(PATH_TOOL_$(TEMPLATE_VBoxBldProg_TOOL)_LIB)/libvcruntime$(VBOX_VCC_CRT_TYPE).lib \ 8443 8445 $(PATH_TOOL_$(TEMPLATE_VBoxBldProg_TOOL)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 8445 8447 $(PATH_TOOL_$(TEMPLATE_VBoxBldProg_TOOL)_LIB)/oldnames.lib 8446 8448 else 8447 TEMPLATE_VBoxBldProg_L IBS= \8449 TEMPLATE_VBoxBldProg_LATE_LIBS = \ 8448 8450 $(PATH_TOOL_$(TEMPLATE_VBoxBldProg_TOOL)_LIB)/oldnames.lib \ 8449 8451 $(PATH_TOOL_$(TEMPLATE_VBoxBldProg_TOOL)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 8502 8504 TEMPLATE_VBoxBldProg_LDFLAGS.sparc64 = -m64 8503 8505 ifeq ($(KBUILD_HOST),linux) 8504 TEMPLATE_VBoxBldProg_L IBS= pthread m rt dl8506 TEMPLATE_VBoxBldProg_LATE_LIBS = pthread m rt dl 8505 8507 else ifeq ($(KBUILD_HOST),os2) 8506 8508 TEMPLATE_VBoxBldProg_TOOL = GXX3OMF 8507 TEMPLATE_VBoxBldProg_L IBS= socket iconv8509 TEMPLATE_VBoxBldProg_LATE_LIBS = socket iconv 8508 8510 else ifeq ($(KBUILD_HOST),darwin) 8509 8511 TEMPLATE_VBoxBldProg_TOOL = $(VBOX_GCC_TOOL) … … 8542 8544 TEMPLATE_VBoxBldProg_LDFLAGS.darwin = $(VBOX_DARWIN_DEF_SDK_LDFLAGS) 8543 8545 endif 8544 TEMPLATE_VBoxBldProg_L IBS=8546 TEMPLATE_VBoxBldProg_LATE_LIBS = 8545 8547 else ifeq ($(KBUILD_HOST),haiku) 8546 8548 TEMPLATE_VBoxBldProg_TOOL = GXX3 8547 TEMPLATE_VBoxBldProg_L IBS= network iconv8549 TEMPLATE_VBoxBldProg_LATE_LIBS = network iconv 8548 8550 TEMPLATE_VBoxBldProg_LIBPATH += \ 8549 8551 /boot/common/lib 8550 8552 else if1of ($(KBUILD_HOST), freebsd openbsd) 8551 8553 TEMPLATE_VBoxBldProg_TOOL = $(VBOX_GCC_TOOL) 8552 TEMPLATE_VBoxBldProg_L IBS= pthread8554 TEMPLATE_VBoxBldProg_LATE_LIBS = pthread 8553 8555 TEMPLATE_VBoxBldProg_INCS += \ 8554 8556 /usr/include \ … … 8561 8563 else ifeq ($(KBUILD_HOST),netbsd) 8562 8564 TEMPLATE_VBoxBldProg_TOOL = GXX3 8563 TEMPLATE_VBoxBldProg_L IBS= pthread8565 TEMPLATE_VBoxBldProg_LATE_LIBS = pthread 8564 8566 TEMPLATE_VBoxBldProg_INCS += \ 8565 8567 /usr/include \ … … 8570 8572 else ifeq ($(KBUILD_HOST),solaris) 8571 8573 TEMPLATE_VBoxBldProg_TOOL = GXX3PLAIN 8572 TEMPLATE_VBoxBldProg_L IBS= rt8574 TEMPLATE_VBoxBldProg_LATE_LIBS = rt 8573 8575 else 8574 8576 $(warning Warning: VBOX Build: Target $(KBUILD_HOST) is not officially supported!) … … 8593 8595 TEMPLATE_VBoxAdvBldProg_LDFLAGS.darwin.arm64 = \ 8594 8596 $(TEMPLATE_VBoxBldProg_LDFLAGS.darwin.arm64) -framework IOKit 8595 TEMPLATE_VBoxAdvBldProg_L IBS = \8597 TEMPLATE_VBoxAdvBldProg_LATE_LIBS = \ 8596 8598 $(PATH_STAGE_LIB)/RuntimeBldProg$(VBOX_HOSTSUFF_LIB) \ 8597 $(TEMPLATE_VBoxBldProg_L IBS)8598 TEMPLATE_VBoxAdvBldProg_L IBS.darwin = \8599 $(TEMPLATE_VBoxAdvBldProg_L IBS) \8599 $(TEMPLATE_VBoxBldProg_LATE_LIBS) 8600 TEMPLATE_VBoxAdvBldProg_LATE_LIBS.darwin = \ 8601 $(TEMPLATE_VBoxAdvBldProg_LATE_LIBS) \ 8600 8602 iconv \ 8601 $(TEMPLATE_VBoxBldProg_L IBS.darwin)8602 TEMPLATE_VBoxAdvBldProg_L IBS.freebsd = \8603 $(TEMPLATE_VBoxAdvBldProg_L IBS) \8603 $(TEMPLATE_VBoxBldProg_LATE_LIBS.darwin) 8604 TEMPLATE_VBoxAdvBldProg_LATE_LIBS.freebsd = \ 8605 $(TEMPLATE_VBoxAdvBldProg_LATE_LIBS) \ 8604 8606 iconv \ 8605 8607 rt \ 8606 $(TEMPLATE_VBoxBldProg_L IBS.freebsd)8607 TEMPLATE_VBoxAdvBldProg_L IBS.linux = \8608 $(TEMPLATE_VBoxAdvBldProg_L IBS) \8609 $(TEMPLATE_VBoxBldProg_L IBS.linux)8610 TEMPLATE_VBoxAdvBldProg_L IBS.solaris = \8611 $(TEMPLATE_VBoxAdvBldProg_L IBS) \8608 $(TEMPLATE_VBoxBldProg_LATE_LIBS.freebsd) 8609 TEMPLATE_VBoxAdvBldProg_LATE_LIBS.linux = \ 8610 $(TEMPLATE_VBoxAdvBldProg_LATE_LIBS) \ 8611 $(TEMPLATE_VBoxBldProg_LATE_LIBS.linux) 8612 TEMPLATE_VBoxAdvBldProg_LATE_LIBS.solaris = \ 8613 $(TEMPLATE_VBoxAdvBldProg_LATE_LIBS) \ 8612 8614 contract \ 8613 8615 kstat \ … … 8615 8617 socket \ 8616 8618 nsl \ 8617 $(TEMPLATE_VBoxBldProg_L IBS.solaris)8619 $(TEMPLATE_VBoxBldProg_LATE_LIBS.solaris) 8618 8620 8619 8621 … … 8683 8685 8684 8686 if defined(VBOX_WITH_MORE_NT4_COMPAT_BINARIES) && "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.x86" 8685 TEMPLATE_VBoxGuestR3ExeBase_L IBS.win.x86 = $(NO_SUCH_VARIABLE)# Ditch RuntimeR3VccTricks28687 TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.win.x86 = $(NO_SUCH_VARIABLE)# Ditch RuntimeR3VccTricks2 8686 8688 endif 8687 8689 … … 8716 8718 RT_NEED_NEW_AND_DELETE 8717 8719 ifeq ($(KBUILD_TARGET),linux) # As few libs as possible on linux. 8718 TEMPLATE_VBoxGuestR3ExeBase_L IBS= pthread rt m dl8720 TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS = pthread rt m dl 8719 8721 else if1of ($(KBUILD_TARGET), darwin freebsd openbsd) 8720 TEMPLATE_VBoxGuestR3ExeBase_L IBS = $(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_LIBS) iconv8722 TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS = $(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_LATE_LIBS) iconv 8721 8723 else ifeq ($(KBUILD_TARGET),solaris) 8722 TEMPLATE_VBoxGuestR3ExeBase_L IBS = $(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_LIBS) nsl8724 TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS = $(TEMPLATE_$(TEMPLATE_VBoxGuestR3ExeBase_EXTENDS)_LATE_LIBS) nsl 8723 8725 endif 8724 8726 … … 8750 8752 TEMPLATE_VBoxGuestR3Exe_LDFLAGS.win.x86 = $(TEMPLATE_VBoxGuestR3ExeBase_LDFLAGS.win.x86) -Include:_vcc100_kernel32_fakes_asm 8751 8753 endif 8752 TEMPLATE_VBoxGuestR3Exe_L IBS.x86= \8754 TEMPLATE_VBoxGuestR3Exe_LATE_LIBS.x86 = \ 8753 8755 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 8754 8756 $(VBOX_LIB_VBGL_R3_X86) \ 8755 8757 $(VBOX_LIB_IPRT_GUEST_R3_X86) \ 8756 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS.x86)8757 TEMPLATE_VBoxGuestR3Exe_L IBS.$(KBUILD_TARGET_ARCH) = \8758 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.x86) 8759 TEMPLATE_VBoxGuestR3Exe_LATE_LIBS.$(KBUILD_TARGET_ARCH) = \ 8758 8760 $(VBOX_LIB_IPRT_GUEST_R3) \ 8759 8761 $(VBOX_LIB_VBGL_R3) \ 8760 8762 $(VBOX_LIB_IPRT_GUEST_R3) \ 8761 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS.$(KBUILD_TARGET_ARCH))8763 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.$(KBUILD_TARGET_ARCH)) 8762 8764 else 8763 8765 TEMPLATE_VBoxGuestR3Exe_CFLAGS = $(TEMPLATE_VBoxGuestR3ExeBase_CFLAGS) $(VBOX_GCC_WERR) 8764 8766 TEMPLATE_VBoxGuestR3Exe_CXXFLAGS = $(TEMPLATE_VBoxGuestR3ExeBase_CXXFLAGS) $(VBOX_GCC_WERR) 8765 TEMPLATE_VBoxGuestR3Exe_L IBS= \8767 TEMPLATE_VBoxGuestR3Exe_LATE_LIBS = \ 8766 8768 $(VBOX_LIB_IPRT_GUEST_R3) \ 8767 8769 $(VBOX_LIB_VBGL_R3) \ 8768 8770 $(VBOX_LIB_IPRT_GUEST_R3) \ 8769 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS)8771 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS) 8770 8772 ifeq ($(KBUILD_TARGET),solaris) 8771 TEMPLATE_VBoxGuestR3Exe_L IBS+= contract8773 TEMPLATE_VBoxGuestR3Exe_LATE_LIBS += contract 8772 8774 endif 8773 8775 endif … … 8781 8783 ifeq ($(KBUILD_TARGET),win) 8782 8784 ifeq ($(KBUILD_TYPE),asan) 8783 TEMPLATE_VBoxGuestR3DllNonPedantic_L IBS.x86 = $(patsubst %clang_rt.asan-i386.lib, %clang_rt.asan_dll_thunk-i386.lib, $(filter-out %clang_rt.asan_cxx-i386.lib,$(TEMPLATE_VBoxGuestR3ExeBase_LIBS.x86)))8784 TEMPLATE_VBoxGuestR3DllNonPedantic_L IBS.amd64 = $(patsubst %clang_rt.asan-x86_64.lib, %clang_rt.asan_dll_thunk-x86_64.lib, $(filter-out %clang_rt.asan_cxx-x86_64.lib,$(TEMPLATE_VBoxGuestR3ExeBase_LIBS.amd64)))8785 TEMPLATE_VBoxGuestR3DllNonPedantic_LATE_LIBS.x86 = $(patsubst %clang_rt.asan-i386.lib, %clang_rt.asan_dll_thunk-i386.lib, $(filter-out %clang_rt.asan_cxx-i386.lib,$(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.x86))) 8786 TEMPLATE_VBoxGuestR3DllNonPedantic_LATE_LIBS.amd64 = $(patsubst %clang_rt.asan-x86_64.lib, %clang_rt.asan_dll_thunk-x86_64.lib, $(filter-out %clang_rt.asan_cxx-x86_64.lib,$(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.amd64))) 8785 8787 endif 8786 8788 else ifn1of ($(KBUILD_TARGET), darwin os2 win) … … 8791 8793 endif 8792 8794 ifeq ($(KBUILD_TARGET),win) 8793 TEMPLATE_VBoxGuestR3DllNonPedantic_L IBS.x86 = \8795 TEMPLATE_VBoxGuestR3DllNonPedantic_LATE_LIBS.x86 = \ 8794 8796 $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \ 8795 8797 $(VBOX_LIB_VBGL_R3_SHARED_X86) \ 8796 8798 $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \ 8797 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS.x86)8798 TEMPLATE_VBoxGuestR3DllNonPedantic_L IBS.$(KBUILD_TARGET_ARCH) = \8799 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.x86) 8800 TEMPLATE_VBoxGuestR3DllNonPedantic_LATE_LIBS.$(KBUILD_TARGET_ARCH) = \ 8799 8801 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \ 8800 8802 $(VBOX_LIB_VBGL_R3_SHARED) \ 8801 8803 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \ 8802 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS.$(KBUILD_TARGET_ARCH))8804 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS.$(KBUILD_TARGET_ARCH)) 8803 8805 else 8804 TEMPLATE_VBoxGuestR3DllNonPedantic_L IBS = \8806 TEMPLATE_VBoxGuestR3DllNonPedantic_LATE_LIBS = \ 8805 8807 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \ 8806 8808 $(VBOX_LIB_VBGL_R3_SHARED) \ 8807 8809 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \ 8808 $(TEMPLATE_VBoxGuestR3ExeBase_L IBS)8810 $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS) 8809 8811 endif 8810 8812 … … 8871 8873 TEMPLATE_NewerVccVBoxGuestR3Dll_CFLAGS = $(TEMPLATE_NewerVccVBoxGuestR3DllNonPedantic_CXXFLAGS) 8872 8874 ifndef VBOX_WITH_NOCRT_STATIC 8873 # Hack begin 8874 # Does not work when building x86 for amd64 build (No rule to make target /oldnames.lib). 8875 # TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.x86 = \ 8876 # $(subst $(PATH_TOOL_$(TEMPLATE_VBoxGuestR3DllNonPedantic_TOOL.win.x86)_LIB),$(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.x86)_LIB), $(TEMPLATE_VBoxGuestR3DllNonPedantic_LIBS.x86)) 8877 # TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.amd64 = \ 8878 # $(subst $(PATH_TOOL_$(TEMPLATE_VBoxGuestR3DllNonPedantic_TOOL.win.amd64)_LIB),$(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB), $(TEMPLATE_VBoxGuestR3DllNonPedantic_LIBS.amd64)) 8879 # Directly assign TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS. 8880 TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.x86 = \ 8875 TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS.x86 = \ 8881 8876 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.x86)_LIB)/oldnames.lib \ 8882 8877 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 8883 8878 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.x86)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 8884 TEMPLATE_NewerVccVBoxGuestR3Dll_L IBS.amd64= \8879 TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS.amd64 = \ 8885 8880 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB)/oldnames.lib \ 8886 8881 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ 8887 8882 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.amd64)_LIB)/libcpmt$(VBOX_VCC_CRT_TYPE).lib 8888 TEMPLATE_NewerVccVBoxGuestR3Dll_L IBS.arm64= \8883 TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS.arm64 = \ 8889 8884 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.arm64)_LIB)/oldnames.lib \ 8890 8885 $(PATH_TOOL_$(TEMPLATE_NewerVccVBoxGuestR3Dll_TOOL.win.arm64)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 8893 8888 # Hack end 8894 8889 endif 8895 TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS = \ 8896 $(TEMPLATE_VBoxGuestR3ExeBase_LIBS) 8890 TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS = $(TEMPLATE_VBoxGuestR3ExeBase_LATE_LIBS) # Not sure why this is here... 8897 8891 8898 8892 # … … 8943 8937 RT_WITHOUT_NOCRT_WRAPPERS 8944 8938 endif 8945 TEMPLATE_VBoxGuestR3NoCrtExe_L IBS= \8939 TEMPLATE_VBoxGuestR3NoCrtExe_LATE_LIBS = \ 8946 8940 $(PATH_STAGE_LIB)/RuntimeR3NoCrt$(VBOX_SUFF_LIB) 8947 8941 ifeq ($(KBUILD_TARGET),win) 8942 TEMPLATE_VBoxGuestR3NoCrtExe_LATE_LIBS.x86 = $(NO_SUCH_VARIABLE) 8943 TEMPLATE_VBoxGuestR3NoCrtExe_LATE_LIBS.amd64= $(NO_SUCH_VARIABLE) 8944 TEMPLATE_VBoxGuestR3NoCrtExe_LATE_LIBS.win = $(NO_SUCH_VARIABLE) 8945 TEMPLATE_VBoxGuestR3NoCrtExe_LATE_LIBS.win.x86 = \ 8946 $(PATH_TOOL_$(TEMPLATE_VBoxGuestR3NoCrtExe_TOOL.win.x86)_LIB)/chkstk.obj 8947 TEMPLATE_VBoxGuestR3NoCrtExe_LIBS = $(NO_SUCH_VARIABLE) # These four aren't necessary, just being careful. 8948 8948 TEMPLATE_VBoxGuestR3NoCrtExe_LIBS.x86 = $(NO_SUCH_VARIABLE) 8949 8949 TEMPLATE_VBoxGuestR3NoCrtExe_LIBS.amd64 = $(NO_SUCH_VARIABLE) 8950 8950 TEMPLATE_VBoxGuestR3NoCrtExe_LIBS.win = $(NO_SUCH_VARIABLE) 8951 TEMPLATE_VBoxGuestR3NoCrtExe_LIBS.win.x86 = \8952 $(PATH_TOOL_$(TEMPLATE_VBoxGuestR3NoCrtExe_TOOL.win.x86)_LIB)/chkstk.obj8953 8951 TEMPLATE_VBoxGuestR3NoCrtExe_LDFLAGS = $(filter-out $(VBOX_VCC_LD_GUARD_CF) $(VBOX_VCC_SANITIZER_LDFLAGS), $(TEMPLATE_VBoxGuestR3Exe_LDFLAGS)) 8954 8952 TEMPLATE_VBoxGuestR3NoCrtExe_LDFLAGS.win.x86 = $(filter-out -Include%, $(TEMPLATE_VBoxGuestR3Exe_LDFLAGS.win.x86)) … … 8988 8986 TEMPLATE_VBoxGuestR3XFree86Mod_LDFLAGS.amd64 := -m elf_x86_64 8989 8987 endif 8990 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS = $(VBOX_LIB_VBGL_R3_XFREE86) 8991 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 8992 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 8988 TEMPLATE_VBoxGuestR3XFree86Mod_LATE_LIBS = $(VBOX_LIB_VBGL_R3_XFREE86) 8989 TEMPLATE_VBoxGuestR3XFree86Mod_LATE_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 8990 TEMPLATE_VBoxGuestR3XFree86Mod_LATE_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 8991 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS = $(NO_SUCH_VARIABLE) # These three aren't necessary, just being careful. 8992 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 8993 TEMPLATE_VBoxGuestR3XFree86Mod_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 8993 8994 8994 8995 … … 8999 9000 TEMPLATE_VBoxGuestR3XFree86Lib_EXTENDS := VBoxGuestR3XFree86Mod 9000 9001 TEMPLATE_VBoxGuestR3XFree86Lib_INST = $(INST_ADDITIONS_LIB) 9001 TEMPLATE_VBoxGuestR3XFree86Lib_LIBS = $(INST_ADDITIONS_LIB)9002 9002 9003 9003 … … 9018 9018 endif 9019 9019 TEMPLATE_VBoxGuestR3XOrgMod_LDFLAGS = $(filter-out $(VBOX_GCC_SANITIZER_FLAGS) $(VBOX_GCC_SANITIZER_LDFLAGS),$(TEMPLATE_VBoxGuestR3DllNonPedantic_LDFLAGS)) 9020 TEMPLATE_VBoxGuestR3XOrgMod_LIBS = $(VBOX_LIB_VBGL_R3_XORG) 9021 TEMPLATE_VBoxGuestR3XOrgMod_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 9022 TEMPLATE_VBoxGuestR3XOrgMod_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 9023 TEMPLATE_VBoxGuestR3XOrgMod_LIBS.freebsd += iconv 9020 TEMPLATE_VBoxGuestR3XOrgMod_LATE_LIBS = $(VBOX_LIB_VBGL_R3_XORG) 9021 TEMPLATE_VBoxGuestR3XOrgMod_LATE_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 9022 TEMPLATE_VBoxGuestR3XOrgMod_LATE_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 9023 TEMPLATE_VBoxGuestR3XOrgMod_LATE_LIBS.freebsd = iconv 9024 TEMPLATE_VBoxGuestR3XOrgMod_LIBS = $(NO_SUCH_VARIABLE) # These three aren't necessary, just being careful. 9025 TEMPLATE_VBoxGuestR3XOrgMod_LIBS.$(KBUILD_TYPE) = $(NO_SUCH_VARIABLE) 9026 TEMPLATE_VBoxGuestR3XOrgMod_LIBS.$(KBUILD_TARGET) = $(NO_SUCH_VARIABLE) 9024 9027 9025 9028 -
trunk/src/VBox/Additions/3D/Config.kmk
r106061 r106683 126 126 $(VBOX_PATH_3D)/win/VBoxWddmUmHlp 127 127 ifdef VBOX_WITH_NOCRT_STATIC # Only the softfloat libs are added here as mesa includes a softfloat.h and we wish for no conflicts. 128 TEMPLATE_VBoxMesa3DGuestR3Dll_L IBS.x86 = \129 $(filter-out $(VBOX_LIB_VBGL_R3_SHARED_X86),$(TEMPLATE_NewerVccVBoxGuestR3Dll_L IBS.x86)) \128 TEMPLATE_VBoxMesa3DGuestR3Dll_LATE_LIBS.x86 = \ 129 $(filter-out $(VBOX_LIB_VBGL_R3_SHARED_X86),$(TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS.x86)) \ 130 130 $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \ 131 131 $(SDK_VBoxSoftFloatGuestR3Shared_LIBS.x86) 132 TEMPLATE_VBoxMesa3DGuestR3Dll_L IBS.$(KBUILD_TARGET_ARCH) = \133 $(filter-out $(VBOX_LIB_VBGL_R3_SHARED),$(TEMPLATE_NewerVccVBoxGuestR3Dll_L IBS.$(KBUILD_TARGET))) \132 TEMPLATE_VBoxMesa3DGuestR3Dll_LATE_LIBS.$(KBUILD_TARGET_ARCH) = \ 133 $(filter-out $(VBOX_LIB_VBGL_R3_SHARED),$(TEMPLATE_NewerVccVBoxGuestR3Dll_LATE_LIBS.$(KBUILD_TARGET))) \ 134 134 $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \ 135 135 $(SDK_VBoxSoftFloatGuestR3Shared_LIBS.$(KBUILD_TARGET_ARCH)) -
trunk/src/VBox/Additions/os2/Config.kmk
r106061 r106683 83 83 $(PATH_DDKVIDEO)/rel/os2c/include/base/os2/16bit 84 84 85 TEMPLATE_VBoxOs2Vac308_L IBS = \85 TEMPLATE_VBoxOs2Vac308_LATE_LIBS = \ 86 86 $(PATH_DDKVIDEO)/rel/os2c/lib/os2/os2386.lib \ 87 87 $(PATH_TOOL_VAC308_LIB)/cppon30.lib -
trunk/src/VBox/Devices/EFI/Firmware/Config.kmk
r106061 r106683 160 160 $(VBOX_PATH_EFI_FIRMWARE)/MdePkg/Include/AArch64 161 161 162 TEMPLATE_VBoxEfiBldProg_L IBS = \162 TEMPLATE_VBoxEfiBldProg_LATE_LIBS = \ 163 163 $(VBOX_PATH_STAGE_EFI_BLDPROGS)/EfiBldCommonLib$(VBOX_SUFF_LIB) \ 164 $(TEMPLATE_VBoxBldProg_L IBS)164 $(TEMPLATE_VBoxBldProg_LATE_LIBS) 165 165 ifn1of ($(KBUILD_HOST), win) # This stuff isn't up to our standard at all! :/ 166 166 TEMPLATE_VBoxEfiBldProg_CFLAGS = $(filter-out -pedantic,$(TEMPLATE_VBoxBldProg_CFLAGS)) \ -
trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk
r106647 r106683 276 276 # 277 277 TEMPLATE_VBoxNetFltR3 = Template for NetFltInstall, NetFltUninstall, NetAdpInstall, NetAdpUninstall, ++ 278 TEMPLATE_VBoxNetFltR3_EXTENDS = VBoxR3Exe279 TEMPLATE_VBoxNetFltR3_SDKS = $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll VBoxWinNewDevLib280 TEMPLATE_VBoxNetFltR3_L IBS = $(TEMPLATE_VBoxR3Exe_LIBS) \278 TEMPLATE_VBoxNetFltR3_EXTENDS = VBoxR3Exe 279 TEMPLATE_VBoxNetFltR3_SDKS = $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll VBoxWinNewDevLib 280 TEMPLATE_VBoxNetFltR3_LATE_LIBS = $(TEMPLATE_VBoxR3Exe_LATE_LIBS) \ 281 281 $(WinNetConfigExe_1_TARGET) \ 282 282 $(PATH_STAGE_LIB)/VBoxDrvCfgExe$(VBOX_SUFF_LIB) \ -
trunk/src/VBox/HostDrivers/VBoxUSB/win/Makefile.kmk
r106647 r106683 130 130 # 131 131 TEMPLATE_VBoxUsbR3 = Template for USBInstalls, USBUninstall and USBTest 132 TEMPLATE_VBoxUsbR3_EXTENDS = VBoxR3Exe133 TEMPLATE_VBoxUsbR3_SDKS = $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxWinNewDevLib134 TEMPLATE_VBoxUsbR3_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -Gz135 TEMPLATE_VBoxUsbR3_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) -Gz136 TEMPLATE_VBoxUsbR3_L IBS = $(TEMPLATE_VBoxR3Exe_LIBS) \132 TEMPLATE_VBoxUsbR3_EXTENDS = VBoxR3Exe 133 TEMPLATE_VBoxUsbR3_SDKS = $(TEMPLATE_VBoxR3Exe_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxWinNewDevLib 134 TEMPLATE_VBoxUsbR3_CXXFLAGS = $(TEMPLATE_VBoxR3Exe_CXXFLAGS) -Gz 135 TEMPLATE_VBoxUsbR3_CFLAGS = $(TEMPLATE_VBoxR3Exe_CFLAGS) -Gz 136 TEMPLATE_VBoxUsbR3_LATE_LIBS = $(TEMPLATE_VBoxR3Exe_LATE_LIBS) \ 137 137 $(PATH_STAGE_LIB)/VBoxDrvCfgExe$(VBOX_SUFF_LIB) \ 138 138 $(LIB_RUNTIME) -
trunk/src/VBox/Runtime/Makefile.kmk
r106635 r106683 3054 3054 TEMPLATE_VBoxR3RuntimeDllItself = xx 3055 3055 TEMPLATE_VBoxR3RuntimeDllItself_EXTENDS = VBoxR3RuntimeDll 3056 TEMPLATE_VBoxR3RuntimeDllItself_L IBS.win.x86 = \3057 $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_L IBS.win.x86))3056 TEMPLATE_VBoxR3RuntimeDllItself_LATE_LIBS.win.x86 = \ 3057 $(filter-out $(PATH_STAGE_LIB)/RuntimeR3VccTricks%, $(TEMPLATE_VBoxR3RuntimeDll_LATE_LIBS.win.x86)) 3058 3058 TEMPLATE_VBoxR3RuntimeDllItself_DEFS += IN_RING3 VCC_FAKES_TARGET_$(VBOX_VCC_TOOL_STEM) VCC_FAKES_TARGET=$(substr $(VBOX_VCC_TOOL_STEM),-3) 3059 3059 TEMPLATE_VBoxR3RuntimeDllItself_SOURCES = \ -
trunk/src/VBox/Storage/testcase/Makefile.kmk
r106061 r106683 163 163 if1of ($(KBUILD_TARGET), os2 win) 164 164 vbox-img_LIBS += \ 165 $(SDK_VBoxLzf _STATIC_LIBS) \165 $(SDK_VBoxLzfStatic_LIBS) \ 166 166 $(SDK_VBoxZlibStatic_LIBS) 167 167 else … … 213 213 if1of ($(KBUILD_TARGET), os2 win) 214 214 vdkeystoremgr_LIBS += \ 215 $(SDK_VBoxLzf _STATIC_LIBS) \215 $(SDK_VBoxLzfStatic_LIBS) \ 216 216 $(SDK_VBoxZlibStatic_LIBS) 217 217 else -
trunk/src/VBox/ValidationKit/Config.kmk
r106061 r106683 53 53 # 54 54 TEMPLATE_VBoxValidationKitR3Base = VBox Validation Kit ring-3 program base, both guest and host. 55 TEMPLATE_VBoxValidationKitR3Base_EXTENDS = VBoxR3Static55 TEMPLATE_VBoxValidationKitR3Base_EXTENDS = VBoxR3Static 56 56 ifeq ($(KBUILD_TARGET),win) 57 57 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS = $(filter-out -IntegrityCheck, $(TEMPLATE_VBoxR3Static_LDFLAGS)) … … 62 62 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS = $(filter-out -static, $(TEMPLATE_VBoxR3Static_LDFLAGS)) 63 63 endif 64 TEMPLATE_VBoxValidationKitR3Base_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS))65 TEMPLATE_VBoxValidationKitR3Base_L IBS = $(TEMPLATE_VBoxR3Static_LIBS)64 TEMPLATE_VBoxValidationKitR3Base_DEFS = $(filter-out VBOX_WITH_DTRACE,$(TEMPLATE_VBoxR3Static_DEFS)) 65 TEMPLATE_VBoxValidationKitR3Base_LATE_LIBS = $(TEMPLATE_VBoxR3Static_LATE_LIBS) 66 66 if1of ($(KBUILD_TARGET), linux) 67 67 if $(VBOX_GCC_VERSION_CXX) < 40800 68 TEMPLATE_VBoxValidationKitR3Base_L IBS+= supc++69 TEMPLATE_VBoxValidationKitR3Base_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL))70 endif 71 endif 72 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit68 TEMPLATE_VBoxValidationKitR3Base_LATE_LIBS += supc++ 69 TEMPLATE_VBoxValidationKitR3Base_LDTOOL = $(subst GXX,GCC,$(TEMPLATE_VBoxR3Static_TOOL)) 70 endif 71 endif 72 TEMPLATE_VBoxValidationKitR3Base_LDFLAGS.darwin = $(TEMPLATE_VBoxR3Static_LDFLAGS.darwin) -framework IOKit 73 73 74 74 … … 83 83 TEMPLATE_VBoxValidationKitR3_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll 84 84 TEMPLATE_VBoxValidationKitR3_DEFS = IN_RT_R3 85 TEMPLATE_VBoxValidationKitR3_L IBS.darwin = iconv86 TEMPLATE_VBoxValidationKitR3_L IBS.freebsd = iconv87 TEMPLATE_VBoxValidationKitR3_L IBS = \85 TEMPLATE_VBoxValidationKitR3_LATE_LIBS.darwin = iconv 86 TEMPLATE_VBoxValidationKitR3_LATE_LIBS.freebsd = iconv 87 TEMPLATE_VBoxValidationKitR3_LATE_LIBS = \ 88 88 $(PATH_STAGE_LIB)/RuntimeR3$(VBOX_SUFF_LIB) 89 89 ifeq ($(KBUILD_TARGET),solaris) 90 TEMPLATE_VBoxValidationKitR3_L IBS += \90 TEMPLATE_VBoxValidationKitR3_LATE_LIBS += \ 91 91 kstat \ 92 92 nsl \ 93 93 contract 94 94 if1of ($(KBUILD_TARGET_ARCH), amd64 x86) 95 TEMPLATE_VBoxValidationKitR3_L IBS += \95 TEMPLATE_VBoxValidationKitR3_LATE_LIBS += \ 96 96 smbios 97 97 endif 98 98 endif 99 99 ifneq ($(KBUILD_TARGET),win) 100 TEMPLATE_VBoxValidationKitR3_L IBS += \100 TEMPLATE_VBoxValidationKitR3_LATE_LIBS += \ 101 101 $(SDK_VBoxZlib_LIBS) 102 102 endif … … 104 104 # Make VCC100 output work on NT3.x, NT4, W2K, XP and W2K3. 105 105 ifndef VBOX_WITH_NOCRT_STATIC 106 TEMPLATE_VBoxValidationKitR3_L IBS.win.x86 = \106 TEMPLATE_VBoxValidationKitR3_LATE_LIBS.win.x86 = \ 107 107 $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/oldnames.lib \ 108 108 $(PATH_TOOL_$(TEMPLATE_VBoxValidationKitR3_TOOL.win.x86)_LIB)/libcmt$(VBOX_VCC_CRT_TYPE).lib \ … … 147 147 TEMPLATE_VBoxValidationKitR3SupDrv_EXTENDS_BY = appending 148 148 TEMPLATE_VBoxValidationKitR3SupDrv_DEFS = IN_SUP_R3 149 TEMPLATE_VBoxValidationKitR3SupDrv_L IBS = \149 TEMPLATE_VBoxValidationKitR3SupDrv_LATE_LIBS = \ 150 150 $(PATH_STAGE_LIB)/SUPR3Static$(VBOX_SUFF_LIB) \ 151 151 $(PATH_STAGE_LIB)/RuntimeR3$(VBOX_SUFF_LIB) … … 164 164 TEMPLATE_VBoxValidationKitR0_INST = $(INST_VALIDATIONKIT)$(KBUILD_TARGET)/$(KBUILD_TARGET_ARCH)/ 165 165 TEMPLATE_VBoxValidationKitR0_DEFS = IN_RT_R0 166 TEMPLATE_VBoxValidationKitR0_L IBS = \166 TEMPLATE_VBoxValidationKitR0_LATE_LIBS = \ 167 167 $(PATH_STAGE_LIB)/RuntimeR0$(VBOX_SUFF_LIB) \ 168 168 $(VBOX_LIB_SUPR0) -
trunk/src/VBox/ValidationKit/bootsectors/Config.kmk
r106560 r106683 789 789 $(eval .PRECIOUS: $(outbase).map) # ugly hack! 790 790 791 TEMPLATE_VBoxBS3KitImg_L IBS = \791 TEMPLATE_VBoxBS3KitImg_LATE_LIBS = \ 792 792 $(PATH_OBJ)/bs3kit-common-16/bs3kit-common-16.lib \ 793 793 $(PATH_OBJ)/bs3kit-common-32/bs3kit-common-32.lib \ … … 895 895 disable 1014, 1080 896 896 897 TEMPLATE_VBoxBS3KitHighImg_L IBS = \897 TEMPLATE_VBoxBS3KitHighImg_LATE_LIBS = \ 898 898 $(PATH_OBJ)/bs3kit-common-16/bs3kit-common-16-implib.lib \ 899 899 $(PATH_OBJ)/bs3kit-common-32/bs3kit-common-32-implib.lib \ -
trunk/src/libs/openssl-3.1.7/Config.kmk
r106538 r106683 376 376 TEMPLATE_LibCryptoTstExe_CFLAGS = $(filter-out $(VBOX_GCC_PEDANTIC_C), $(TEMPLATE_VBoxR3TstExe_CFLAGS)) $(VBOX_GCC_NON_PEDANTIC_C) 377 377 endif 378 TEMPLATE_LibCryptoTstExe_L IBS = $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) $(TEMPLATE_VBoxR3TstExe_LIBS)378 TEMPLATE_LibCryptoTstExe_LATE_LIBS = $(PATH_STAGE_LIB)/VBox-libcrypto$(VBOX_SUFF_LIB) $(TEMPLATE_VBoxR3TstExe_LATE_LIBS) 379 379 380 380 -
trunk/src/libs/softfloat-3e/testfloat/Makefile.kmk
r106061 r106683 62 62 # 63 63 TEMPLATE_VBoxTestFloatExe = Template for building SoftFloat-3e programs. 64 TEMPLATE_VBoxTestFloatExe_EXTENDS = VBoxTestFloat65 TEMPLATE_VBoxTestFloatExe_INST = $(INST_TESTCASE)66 TEMPLATE_VBoxTestFloatExe_L IBS= \64 TEMPLATE_VBoxTestFloatExe_EXTENDS = VBoxTestFloat 65 TEMPLATE_VBoxTestFloatExe_INST = $(INST_TESTCASE) 66 TEMPLATE_VBoxTestFloatExe_LATE_LIBS = \ 67 67 $(VBox-TestFloat_1_TARGET) \ 68 $(TEMPLATE_VBoxTestFloat_L IBS)68 $(TEMPLATE_VBoxTestFloat_LATE_LIBS) 69 69 70 70 # -wd4098: testfloat.c(438): warning C4098: 'subjFunction_az_extF80_rx': 'void' function returning a value -
trunk/src/libs/xpcom18a4/Config.kmk
r106535 r106683 165 165 166 166 # When using IPRT in NSRP or/and using IPRT for logging, link with IPRT. 167 TEMPLATE_XPComDll_L IBS+= $(LIB_RUNTIME)167 TEMPLATE_XPComDll_LATE_LIBS += $(LIB_RUNTIME) 168 168 169 169 … … 182 182 $(VBOX_PATH_SDK)/bindings/xpcom/include/ipcd \ 183 183 . 184 TEMPLATE_XPComExe_L IBS= \184 TEMPLATE_XPComExe_LATE_LIBS = \ 185 185 $(VBox-xpcom-ipcshared_1_TARGET) \ 186 186 $(VBoxXPCOM_1_TARGET) \ 187 $(TEMPLATE_XPComDll_L IBS)188 TEMPLATE_XPComExe_L IBS.freebsd= $(LIB_PTHREAD)189 TEMPLATE_XPComExe_L IBS.linux= dl $(LIB_PTHREAD)187 $(TEMPLATE_XPComDll_LATE_LIBS) 188 TEMPLATE_XPComExe_LATE_LIBS.freebsd = $(LIB_PTHREAD) 189 TEMPLATE_XPComExe_LATE_LIBS.linux = dl $(LIB_PTHREAD) 190 190 TEMPLATE_XPComExe_LDFLAGS.darwin = -bind_at_load $(filter-out -current_version -compatibility_version $(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD),$(TEMPLATE_XPComDll_LDFLAGS.darwin)) 191 191 … … 233 233 TEMPLATE_XPComBldProg_LDFLAGS.darwin = $(TEMPLATE_VBoxAdvBldProg_LDFLAGS.darwin) -fpascal-strings -fshort-wchar -fno-rtti -fno-exceptions 234 234 TEMPLATE_XPComBldProg_ORDERDEPS = $(foreach hdrinst, $(filter %-HEADERS, $(INSTALLS)), $($(hdrinst)_1_TARGET)) 235 TEMPLATE_XPComBldProg_L IBS.darwin= \235 TEMPLATE_XPComBldProg_LATE_LIBS.darwin = \ 236 236 iconv 237 237 … … 255 255 TEMPLATE_XPComDll-x86_BLD_TRG_ARCH = x86 256 256 TEMPLATE_XPComDll-x86_DEFS = $(TEMPLATE_XPComDll_DEFS) VBOX_IN_32_ON_64_MAIN_API 257 TEMPLATE_XPComDll-x86_L IBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDll_LIBS))257 TEMPLATE_XPComDll-x86_LATE_LIBS = $(subst $(LIB_RUNTIME),$(VBOX_LIB_RUNTIME_X86),$(TEMPLATE_XPComDll_LATE_LIBS)) 258 258 259 259 -
trunk/src/libs/xpcom18a4/Makefile.kmk
r106535 r106683 764 764 TEMPLATE_XPComIpcDll_DEFS += IPC_LOGGING 765 765 endif 766 TEMPLATE_XPComIpcDll_L IBS = $(VBoxXPCOM_1_TARGET) $(TEMPLATE_XPComDll_LIBS)766 TEMPLATE_XPComIpcDll_LATE_LIBS = $(VBoxXPCOM_1_TARGET) $(TEMPLATE_XPComDll_LATE_LIBS) 767 767 ifneq ($(KBUILD_TARGET),win) 768 768 ifeq ($(filter-out solaris.x86 %.amd64 %.sparc32 %.sparc64,$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)),) ## TODO: cleanup! … … 780 780 TEMPLATE_XPComIpcDll-x86_EXTENDS = XPComIpcDll 781 781 TEMPLATE_XPComIpcDll-x86_BLD_TRG_ARCH = x86 782 TEMPLATE_XPComIpcDll-x86_L IBS = $(VBoxXPCOM-x86_1_TARGET) $(TEMPLATE_XPComDll-x86_LIBS)782 TEMPLATE_XPComIpcDll-x86_LATE_LIBS = $(VBoxXPCOM-x86_1_TARGET) $(TEMPLATE_XPComDll-x86_LATE_LIBS) 783 783 784 784 TEMPLATE_XPComIpcExe = XPCOM IPC executables … … 836 836 $(VBox-xpcom-ipcshared_1_TARGET) \ 837 837 $(VBoxXPCOM_1_TARGET) \ 838 $(TEMPLATE_XPComDll_L IBS)838 $(TEMPLATE_XPComDll_LATE_LIBS) 839 839 840 840
Note:
See TracChangeset
for help on using the changeset viewer.