From 312e9fe3f047547df4c21c8e666cc9aa70e15347 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 29 Dec 2019 10:44:13 -0800 Subject: recipes: Use -fcommon explicitly This is needed with gcc 10 Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-devtools/llvm/llvm_git.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-devtools/llvm') diff --git a/meta/recipes-devtools/llvm/llvm_git.bb b/meta/recipes-devtools/llvm/llvm_git.bb index d24ed761bf..a8607f5008 100644 --- a/meta/recipes-devtools/llvm/llvm_git.bb +++ b/meta/recipes-devtools/llvm/llvm_git.bb @@ -92,6 +92,8 @@ EXTRA_OECMAKE_append_class-nativesdk = "\ -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \ " +CFLAGS += "-fcommon" + do_configure_prepend() { # Fix paths in llvm-config sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp -- cgit 1.2.3-korg