diff mbox series

[oe,meta-networking] dlm: Drop -fstack-clash-protection for clang

Message ID 20191119184943.2681930-1-raj.khem@gmail.com
State Accepted
Commit 85bb13e02228018968c41b5c792da0a79eb330d3
Headers show
Series [oe,meta-networking] dlm: Drop -fstack-clash-protection for clang | expand

Commit Message

Khem Raj Nov. 19, 2019, 6:49 p.m. UTC
-fstack-clash-protection is gcc-only option

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

---
 meta-networking/recipes-extended/dlm/dlm_4.0.9.bb | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.24.0

-- 
_______________________________________________
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-networking/recipes-extended/dlm/dlm_4.0.9.bb b/meta-networking/recipes-extended/dlm/dlm_4.0.9.bb
index 876462d2f0..6345c8141b 100644
--- a/meta-networking/recipes-extended/dlm/dlm_4.0.9.bb
+++ b/meta-networking/recipes-extended/dlm/dlm_4.0.9.bb
@@ -36,6 +36,10 @@  export EXTRA_OEMAKE = ""
 
 DONTBUILD = "${@bb.utils.contains('PACKAGECONFIG', 'pacemaker', '', 'fence', d)}"
 
+do_compile_prepend_toolchain-clang() {
+    sed -i -e "s/-fstack-clash-protection//g" ${S}/*/Makefile
+}
+
 do_compile_prepend() {
     sed -i "s/libsystemd-daemon/libsystemd/g" ${S}/dlm_controld/Makefile
     sed -i -e "s/ ${DONTBUILD}//g" ${S}/Makefile