From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
To: openembedded-core@lists.openembedded.org, oss.burton@intel.com,
william.c.randle@intel.com
Subject: [PATCH] grub-efi: Force no-pie build
Date: Tue, 22 Nov 2016 10:49:02 +0100 [thread overview]
Message-ID: <20161122094902.28965-1-ricardo.ribalda@gmail.com> (raw)
PIE is enabled by default on the latest Debian LD. Disable it for
grub-efi. Otherwise:
| /usr/bin/ld: -r and -pie may not be used together
| collect2: error: ld returned 1 exit status
| Makefile:61382: recipe for target 'trig.module' failed
| make[3]: *** [trig.module] Error 1
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
---
meta/recipes-bsp/grub/grub-efi_2.00.bb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 5a0dc954a3bf..9d07a31de7ce 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -2,12 +2,14 @@ require grub2.inc
DEPENDS_class-target = "grub-efi-native"
RDEPENDS_${PN}_class-target = "diffutils freetype"
-PR = "r3"
+PE = "1"
SRC_URI += " \
file://cfg \
"
+BUILD_LDFLAGS += "-no-pie"
+
S = "${WORKDIR}/grub-${PV}"
# Determine the target arch for the grub modules
--
2.10.2
reply other threads:[~2016-11-22 9:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161122094902.28965-1-ricardo.ribalda@gmail.com \
--to=ricardo.ribalda@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=oss.burton@intel.com \
--cc=william.c.randle@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox