summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/virtualbox/files/virtualbox-7.0.8-mtune-keep-size.patch')
-rw-r--r--app-emulation/virtualbox/files/virtualbox-7.0.8-mtune-keep-size.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/app-emulation/virtualbox/files/virtualbox-7.0.8-mtune-keep-size.patch b/app-emulation/virtualbox/files/virtualbox-7.0.8-mtune-keep-size.patch
new file mode 100644
index 000000000000..e37d9d6dcb94
--- /dev/null
+++ b/app-emulation/virtualbox/files/virtualbox-7.0.8-mtune-keep-size.patch
@@ -0,0 +1,13 @@
+Force -mtune=i386. Random -mtune can lead to iPxeBiosBin.rom getting too
+large (larger than 56k). This can happen because we support custom CFLAGS.
+
+--- a/src/VBox/Devices/PC/ipxe/Makefile.kmk
++++ b/src/VBox/Devices/PC/ipxe/Makefile.kmk
+@@ -125,6 +125,7 @@
+ -ffreestanding \
+ -ffunction-sections \
+ -march=i386 \
++ -mtune=i386 \
+ -fomit-frame-pointer \
+ -fstrength-reduce \
+ -falign-jumps=1 \