VirtualBox

Ignore:
Timestamp:
Mar 29, 2023 8:26:03 PM (21 months ago)
Author:
vboxsync
Message:

Add/3D/Config.kmk: Fix for linking regression from r156294, where VBOX_LIB_VBGL_R3_SHARED(_X86) got into the LIBS list of the parent template. This breaks VBoxNine and others using VBoxMesa3DGuestR3DllMinVista, because they have to provide their own version of some of the stuff in there due to CreateFile and friends being off limits in some of the execution contexts. bugref:10348

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/3D/Config.kmk

    r98416 r99213  
    3939VBOX_PATH_VMSVGA_INC := $(VBOX_PATH_MESA)/src/gallium/drivers/svga/include
    4040
     41
    4142#
    4243# Base template for Mesa3D code and code which uses Mesa3D libraries.
     
    4546TEMPLATE_VBoxMesa3DGuestR3Dll_EXTENDS  = NewerVccVBoxGuestR3Dll
    4647TEMPLATE_VBoxMesa3DGuestR3Dll_INST     = $(INST_ADDITIONS)
     48TEMPLATE_VBoxMesa3DGuestR3Dll_SDKS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_SDKS) $(VBOX_WINDDK_GST_W8)
    4749TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS     = $(TEMPLATE_NewerVccVBoxGuestR3Dll_DEFS) \
    4850        VBOX_WITH_MESA3D
    4951ifdef VBOX_WITH_VMSVGA
    50  TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS   += \
    51         VBOX_WITH_VMSVGA
    52  # treat as error: warning C4013: 'close' undefined; assuming extern returning int
    53  TEMPLATE_VBoxMesa3DGuestR3Dll_CFLAGS  = $(TEMPLATE_NewerVccVBoxGuestR3Dll_CFLAGS) -we4013
     52 TEMPLATE_VBoxMesa3DGuestR3Dll_DEFS   += VBOX_WITH_VMSVGA
    5453endif
    55 TEMPLATE_VBoxMesa3DGuestR3Dll_SDKS.win = $(TEMPLATE_NewerVccVBoxGuestR3Dll_SDKS) \
    56         $(VBOX_WINDDK_GST_W8)
    5754# VirtualBox specific modifications of the Mesa3D code.
    5855# All modified places can be found by searching for VBOX
     
    9693        WINAPI=__stdcall \
    9794        _WIN32
     95ifdef VBOX_WITH_VMSVGA
     96 # treat as error: warning C4013: 'close' undefined; assuming extern returning int
     97 TEMPLATE_VBoxMesa3DGuestR3Dll_CFLAGS  = $(TEMPLATE_NewerVccVBoxGuestR3Dll_CFLAGS) -we4013
     98endif
    9899TEMPLATE_VBoxMesa3DGuestR3Dll_INCS     = $(TEMPLATE_NewerVccVBoxGuestR3Dll_INCS) \
    99100        $(VBOX_PATH_MESA)/include \
     
    105106        $(VBOX_PATH_3D)/win/VBoxWddmUmHlp
    106107ifdef VBOX_WITH_NOCRT_STATIC # Only the softfloat libs are added here as mesa includes a softfloat.h and we wish for no conflicts.
    107  TEMPLATE_VBoxMesa3DGuestR3Dll_LIBS.x86 += $(TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.x86) \
     108 TEMPLATE_VBoxMesa3DGuestR3Dll_LIBS.x86 = \
     109        $(filter-out $(VBOX_LIB_VBGL_R3_SHARED_X86),$(TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.x86)) \
    108110        $(VBOX_LIB_IPRT_GUEST_R3_SHARED_X86) \
    109111        $(SDK_VBoxSoftFloatGuestR3Shared_LIBS.x86)
    110  TEMPLATE_VBoxMesa3DGuestR3Dll_LIBS.$(KBUILD_TARGET_ARCH) += $(TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.$(KBUILD_TARGET)) \
     112 TEMPLATE_VBoxMesa3DGuestR3Dll_LIBS.$(KBUILD_TARGET_ARCH) = \
     113        $(filter-out $(VBOX_LIB_VBGL_R3_SHARED),$(TEMPLATE_NewerVccVBoxGuestR3Dll_LIBS.$(KBUILD_TARGET))) \
    111114        $(VBOX_LIB_IPRT_GUEST_R3_SHARED) \
    112115        $(SDK_VBoxSoftFloatGuestR3Shared_LIBS.$(KBUILD_TARGET_ARCH))
     
    126129endif
    127130
     131
    128132#
    129133# Variant of VBoxMesa3DGuestR3Dll that requires Windows Vista or later.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette