diff mbox series

[oe,meta-oe,3/4] crash: Pass optimization flags to configure via CC

Message ID 20170628061418.16693-3-raj.khem@gmail.com
State Accepted
Commit b62538284d0f8f1f45599914651991506a325493
Headers show
Series [oe,meta-oe,1/4] cdrkit: Fix build with hardening flags | expand

Commit Message

Khem Raj June 28, 2017, 6:14 a.m. UTC
This is because when using fortify warnings we need to have
some level of optimization, while we append warnings to CC
we dont do the same for optimization, which results in compile
failures when doing build with hardened flags

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-kernel/crash/crash_7.1.9.bb | 1 +
 1 file changed, 1 insertion(+)

-- 
2.13.2

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

Patch

diff --git a/meta-oe/recipes-kernel/crash/crash_7.1.9.bb b/meta-oe/recipes-kernel/crash/crash_7.1.9.bb
index 93208e398..d40937e93 100644
--- a/meta-oe/recipes-kernel/crash/crash_7.1.9.bb
+++ b/meta-oe/recipes-kernel/crash/crash_7.1.9.bb
@@ -35,6 +35,7 @@  SRC_URI[gdb.sha256sum] = "8070389a5dcc104eb0be483d582729f98ed4d761ad19cedd3f17b5
 inherit gettext
 
 BBCLASSEXTEND = "native cross"
+TARGET_CC_ARCH_append = " ${SELECTED_OPTIMIZATION}"
 
 # crash 7.1.3 and before don't support mips64
 COMPATIBLE_HOST = "^(?!mips64).*"