virtualbox6: fix build errors with -std=gnu++20

Fixes #4872
This commit is contained in:
Christian Helmuth 2023-05-16 11:35:08 +02:00
parent e1b6855352
commit cfca9899b2
2 changed files with 7 additions and 2 deletions

View File

@ -63,6 +63,12 @@ VBOX_CC_OPT += -DVBOX_WITH_GUEST_PROPS
# prevent access to port content at the dependency stage of the build system
ifeq ($(called_from_lib_mk),yes)
include $(VIRTUALBOX_DIR)/Version.kmk
CC_CXX_OPT_STD = -std=gnu++17
endif
# if included from virtualbox6/target.mk provide version but leave CC_CXX_OPT_STD alone
ifeq ($(included_from_target_mk),yes)
include $(VIRTUALBOX_DIR)/Version.kmk
endif
VIRTUALBOX_PACKAGE_STRING_x86_32 = GenodeOS_32BIT_GENERIC

View File

@ -2,8 +2,7 @@ REQUIRES = x86_64
TARGET = virtualbox6
# fake build pass for lib .inc
called_from_lib_mk := yes
included_from_target_mk := yes
include $(REP_DIR)/lib/mk/virtualbox6-common.inc
CC_WARN += -Wall