summaryrefslogtreecommitdiff
path: root/user/grub/fix-gcc-no-pie-specs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/grub/fix-gcc-no-pie-specs.patch')
-rw-r--r--user/grub/fix-gcc-no-pie-specs.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/grub/fix-gcc-no-pie-specs.patch b/user/grub/fix-gcc-no-pie-specs.patch
new file mode 100644
index 000000000..273c9dbe3
--- /dev/null
+++ b/user/grub/fix-gcc-no-pie-specs.patch
@@ -0,0 +1,11 @@
+--- ./configure.ac.orig
++++ ./configure.ac
+@@ -1100,7 +1100,7 @@
+ if test x"$grub_cv_target_cc_efiemu64_link_format" = xunknown; then
+ efiemu_excuse="no suitable link format for efiemu64 found"
+ else
+- EFIEMU64_LINK_FORMAT="-Wl,$grub_cv_target_cc_efiemu64_link_format"
++ EFIEMU64_LINK_FORMAT="-Wl,$grub_cv_target_cc_efiemu64_link_format -no-pie"
+ fi
+ fi
+ if test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then