VirtualBox

Changeset 98215 in vbox


Ignore:
Timestamp:
Jan 22, 2023 10:29:23 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155404
Message:

/Config.kmk,FE/Qt/Makefile.kmk: Use VBOX_GCC_Wno-deprecated-copy rather than assuming all gcc versions knows it, likewise -Wno-deprecated-copy must be detected before used. bugref:10348

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r98214 r98215  
    33383338        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-inline                     ?= $(call VBOX_GCC_CHECK_CXX,-Wno-inline,)'
    33393339        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-unknown-pragmas            ?= $(call VBOX_GCC_CHECK_CXX,-Wno-unknown-pragmas,)'
     3340        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_Wno-deprecated-copy            ?= $(call VBOX_GCC_CHECK_CXX,-Wno-deprecated-copy,)'
    33403341        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-stack-protector   ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)'
    33413342        $(QUIET)$(APPEND) '$@' 'VBOX_GCC_fno-dwarf2-cfi-asm    ?= $(call VBOX_GCC_CHECK_CC,-fno-dwarf2-cfi-asm,)'
     
    79487949   TEMPLATE_VBoxQtGuiExe_CXXFLAGS += -fPIC
    79497950   # Needed for GCC 9. Even system's Qt 5.12.4 (on Ubuntu 19.10) did not have this fixed yet.
    7950    TEMPLATE_VBoxQtGuiExe_CXXFLAGS.linux = -Wno-deprecated-copy $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS)
     7951   TEMPLATE_VBoxQtGuiExe_CXXFLAGS.linux = $(VBOX_GCC_Wno-deprecated-copy) $(TEMPLATE_VBoxQtGuiExe_CXXFLAGS)
    79517952   TEMPLATE_VBoxQtGuiExe_LDFLAGS  += -fPIC
    79527953 endif # not darwin, os2 or win
     
    87318732#
    87328733# Guest additions libraries (all static).
    8733 #   The _MINI and _SHARED are both compiled as PIC and intended for linking into a .so/.dll/.dylib.
     8734#   The _SHARED variants are compiled as PIC and intended for linking into a .so/.dll/.dylib.
    87348735#
    87358736VBOX_LIB_IPRT_GUEST_R3           = $(VBOX_PATH_ADDITIONS_LIB)/RuntimeGuestR3$(VBOX_SUFF_LIB)
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r98169 r98215  
    384384endif
    385385
    386 VirtualBox_CXXFLAGS.linux += -Wno-class-memaccess
     386VirtualBox_CXXFLAGS.linux += $(VBOX_GCC_Wno-class-memaccess)
    387387
    388388## @todo we're using a number of deprecated APIs, please fix and remove these!
     
    415415endif
    416416
    417 VirtualBoxVM_CXXFLAGS.linux += -Wno-class-memaccess
     417VirtualBoxVM_CXXFLAGS.linux += $(VBOX_GCC_Wno-class-memaccess)
    418418
    419419## @todo we're using a number of deprecated APIs, please fix and remove these!
     
    446446#
    447447
    448 UICommon_CXXFLAGS.linux += -Wno-class-memaccess
     448UICommon_CXXFLAGS.linux += $(VBOX_GCC_Wno-class-memaccess)
    449449UICommon_CXXFLAGS.win += -wd4868 # prevents std::stable_sort from using functor/function comparator
    450450UICommon_CXXFLAGS.win += -bigobj # COMWrappers.cpp fails with too many sections on win64-dep otherwise.
Note: See TracChangeset for help on using the changeset viewer.

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