Skip to contentSkip to conversation

grub-efi: Force no-pie build

PATCH New Ricardo Ribalda Delgado 1 participant 1 message Nov 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 grub-efi: Force no-pie build

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
---
 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 5a0dc954a3bf..9d07a31de7ce 100644
@@ -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
Signature · 1 line
2.10.2