2020-09-09 15:44:15 +02:00
|
|
|
Index: VirtualBox-6.1.14/Config.kmk
|
2020-03-30 06:53:46 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/Config.kmk
|
|
|
|
+++ VirtualBox-6.1.14/Config.kmk
|
|
|
|
@@ -2634,11 +2634,17 @@ else
|
2020-03-30 06:53:46 +02:00
|
|
|
# The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)).
|
|
|
|
# Some versions of gcc (e.g. openSUSE11) return only major.minor on `gcc -dumpversion`.
|
|
|
|
# gcc-5 of openSUSE42.1 only returns the major version on `gcc -dumpversion`!
|
|
|
|
- VBOX_GCC_VERSION = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion) | \
|
2020-09-09 15:44:15 +02:00
|
|
|
- $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, $$(firstword \2 0)), $$(firstword \3 0))|' )
|
2020-03-30 06:53:46 +02:00
|
|
|
+ #
|
|
|
|
+ # Check to make sure that the compiler has either -dumpfullversion or -dumpversion. gcc-10 has neither
|
|
|
|
+ RC = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion 2>/dev/null) ; echo $$?)
|
|
|
|
+ ifneq ($(RC),0)
|
2020-09-09 15:44:15 +02:00
|
|
|
+ # dump version commands not available - hardcode 10.2.1 for the moment
|
|
|
|
+ VBOX_GCC_VERSION = 100201
|
2020-03-30 06:53:46 +02:00
|
|
|
+ else
|
|
|
|
+ VBOX_GCC_VERSION = $(shell ($(1) -dumpfullversion 2>/dev/null || $(1) -dumpversion 2>/dev/null) | \
|
2020-09-09 15:44:15 +02:00
|
|
|
+ $(SED_EXT) 's|\([0-9][0-9]*\)\.\{0,1\}\([0-9]\{0,\}\)\.\{0,1\}\([0-9]\{0,\}\).*|$$(expr 10000 * \1 + 100 * $$(firstword \2 0) + $$(firstword \3 0))|' )
|
2020-03-30 06:53:46 +02:00
|
|
|
+ endif
|
2020-09-09 15:44:15 +02:00
|
|
|
endif
|
|
|
|
-
|
|
|
|
-# YASM macros
|
|
|
|
ifndef DONT_USE_YASM
|
|
|
|
include $(KBUILD_PATH)/tools/YASM.kmk
|
|
|
|
if1of ($(KBUILD_HOST), win os2)
|
|
|
|
Index: VirtualBox-6.1.14/src/VBox/Debugger/DBGCDumpImage.cpp
|
2020-03-30 06:53:46 +02:00
|
|
|
===================================================================
|
2020-09-09 15:44:15 +02:00
|
|
|
--- VirtualBox-6.1.14.orig/src/VBox/Debugger/DBGCDumpImage.cpp
|
|
|
|
+++ VirtualBox-6.1.14/src/VBox/Debugger/DBGCDumpImage.cpp
|
2020-06-06 03:25:21 +02:00
|
|
|
@@ -468,7 +468,7 @@ static const char *dbgcMachoCpuType(int3
|
2020-04-10 11:55:34 +02:00
|
|
|
{
|
2020-06-06 03:25:21 +02:00
|
|
|
switch (iType)
|
2020-04-10 11:55:34 +02:00
|
|
|
{
|
|
|
|
- case CPU_TYPE_ANY: return "CPU_TYPE_ANY";
|
|
|
|
+ default: return "CPU_TYPE_ANY";
|
|
|
|
case CPU_TYPE_VAX: return "VAX";
|
|
|
|
case CPU_TYPE_MC680x0: return "MC680x0";
|
|
|
|
case CPU_TYPE_X86: return "X86";
|