I tried patching the same place as in syslinux:

--- a/src/VBox/Devices/PC/ipxe/src/Makefile
+++ b/src/VBox/Devices/PC/ipxe/src/Makefile
@@ -4,7 +4,7 @@
 #
 
 CLEANUP                :=
-CFLAGS         :=
+CFLAGS         := -fno-PIE
 ASFLAGS                :=
 LDFLAGS                :=
 HOST_CFLAGS    :=

...but virtualbox doesn't use that Makefile.
Injecting -fno-PIE one level up allowed the build to continue further.

--- a/src/VBox/Devices/PC/ipxe/Makefile.kmk
+++ b/src/VBox/Devices/PC/ipxe/Makefile.kmk
@@ -130,6 +130,7 @@
        -Wall \
        -W \
        -Wformat-nonliteral \
+       -fno-PIE \
        $(VBOX_GCC_fno-stack-protector) \
        $(VBOX_GCC_fno-dwarf2-cfi-asm) \
        $(VBOX_GCC_Wno-address)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1578424

Title:
  demote virtualbox and reverse dependencies in yakkety

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/testdrive/+bug/1578424/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to