VirtualBox

Ignore:
Timestamp:
Jan 17, 2022 10:51:43 AM (3 years ago)
Author:
vboxsync
Message:

Add,SUP: x86 build adjustments for /guard:cf. bugref:10162

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/Makefile.kmk

    r93251 r93265  
    3939 VBoxVideo_DEFS        += VBOX_WITH_VIDEOHWACCEL
    4040endif
    41 VBoxVideo_INCS          = ../../../include .. . $(VBOX_GRAPHICS_INCS)
     41VBoxVideo_INCS          = \
     42        ../../../include \
     43        .. \
     44        . \
     45        $(VBOX_GRAPHICS_INCS)
    4246VBoxVideo_LDFLAGS.x86   = /Entry:DriverEntry@8
    4347VBoxVideo_LDFLAGS.amd64 = /Entry:DriverEntry
     
    5963        $(PATH_ROOT)/src/VBox/Additions/common/VBoxVideo/Modesetting.cpp
    6064VBoxVideo_LIBS          = \
    61         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/videoprt.lib \
    62         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/ntoskrnl.lib \
    63         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/hal.lib \
     65        $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/videoprt.lib \
     66        $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/ntoskrnl.lib \
     67        $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/hal.lib \
    6468        $(VBOX_LIB_VBGL_R0) \
    6569        $(VBOX_LIB_IPRT_GUEST_R0_NT4) \
    6670        $(VBOX_PATH_ADDITIONS_LIB)/HGSMIGuestR0Lib$(VBOX_SUFF_LIB)
    67 VBoxVideo_LIBS.x86      = \
    68         $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib
    69 if "$(VBOX_VCC_TOOL_STEM)" >= "VCC142" && !defined(VBOX_WITHOUT_CONTROL_FLOW_GUARD)
    70  VBoxVideo_LIBS += \
    71         $(PATH_SDK_$(VBOX_WINDDK)_LIB.$(KBUILD_TARGET_ARCH))/BufferOverflowK.lib
     71ifeq ($(KBUILD_TARGET_ARCH),x86)
     72 VBoxVideo_LIBS         += \
     73        $(PATH_SDK_$(VBOX_WINDDK_GST_NT4)_LIB)/exsup.lib \
     74        $(PATH_SDK_$(VBOX_WINDDK_GST)_LIB)/BufferOverflowK.lib # Needed for ___security_cookie.
    7275endif
     76VBoxVideo_USES.win = vboximportchecker
     77VBoxVideo_VBOX_IMPORT_CHECKER.win.x86 = nt4/r0
     78VBoxVideo_VBOX_IMPORT_CHECKER.win.amd64 = xp64/r0
    7379
    7480ifdef VBOX_WITH_WDDM
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