grub-efi: Force no-pie build
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
Signed-off-by Ricardo Ribalda Delgado <[email protected]>
--- 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
@@ -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