Skip to contentSkip to conversation

efivar: ensure that target security flags are not used to build native code

PATCH New Ross Burton 1 participant 1 message Jul 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 efivar: ensure that target security flags are not used to build native code

Also set LDFLAGS=BUILD_LDFLAGS when compiling makeguids to ensure that any target compiler flags are not passed to the native compiler.

[ YOCTO #13423 ]

---
 meta/recipes-bsp/efivar/efivar_37.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta/recipes-bsp/efivar/efivar_37.bb +4 -1
index c4254c70d91..9b95721a4ec 100644
@@ -23,7 +23,10 @@ LDFLAGS += "-fuse-ld=bfd"
 
 do_compile_prepend() {
     # Remove when https://github.com/rhboot/efivar/issues/130 is fixed
-    oe_runmake CFLAGS="${BUILD_CFLAGS}" -C src makeguids
+    oe_runmake \
+        CFLAGS="${BUILD_CFLAGS}" \
+        LDFLAGS="${BUILD_LDFLAGS}" \
+        -C src makeguids
 }
 
 do_install() {
Signature · 1 line
2.11.0