Skip to contentSkip to conversation

grub-efi: enforce no-pie for the native build

PATCH New Alexander Kanavin 1 participant 1 message Dec 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grub-efi: enforce no-pie for the native build

---
 meta/recipes-bsp/grub/grub-efi_2.00.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-bsp/grub/grub-efi_2.00.bb +3 -1
index 5a0dc95..9aab813 100644
@@ -37,7 +37,9 @@ EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-
 
 # ldm.c:114:7: error: trampoline generated for nested function 'hook' [-Werror=trampolines]
 # and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
-CFLAGS_append_class-native = " -Wno-error=trampolines"
+#
+# Add a -no-pie as recent (2 Dec 2016) Debian testing seems to default to pie enabled
+CFLAGS_append_class-native = " -Wno-error=trampolines -no-pie"
 
 do_install_class-native() {
 	install -d ${D}${bindir}
Signature · 1 line
2.10.2