diff mbox series

[warrior,2/4] efivar: ensure that target security flags are not used to build native code

Message ID 1565157150-7729-2-git-send-email-chin.huat.ang@intel.com
State New
Headers show
Series [warrior,1/4] efivar: add | expand

Commit Message

Chin Huat Ang Aug. 7, 2019, 5:52 a.m. UTC
From: Ross Burton <ross.burton@intel.com>


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

[ YOCTO #13423 ]

(From OE-Core rev: f61e0676aabba9e006c32f0e53c69426368cd4f0)

Signed-off-by: Ross Burton <ross.burton@intel.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

---
 meta/recipes-bsp/efivar/efivar_37.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
diff mbox series

Patch

diff --git a/meta/recipes-bsp/efivar/efivar_37.bb b/meta/recipes-bsp/efivar/efivar_37.bb
index c4254c7..9b95721 100644
--- a/meta/recipes-bsp/efivar/efivar_37.bb
+++ b/meta/recipes-bsp/efivar/efivar_37.bb
@@ -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() {