diff options
| author | Khem Raj <raj.khem@gmail.com> | 2019-12-29 10:44:13 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-30 23:39:09 +0000 |
| commit | 46827b861626386c5c6db6f400616a797e181233 (patch) | |
| tree | bb0b52f412daaaa2f9510a72cf60dbdcf4071d51 /meta/recipes-devtools/llvm/llvm_git.bb | |
| parent | 29354c8738a71aa380077a7745f68e18b4a914e0 (diff) | |
| download | poky-46827b861626386c5c6db6f400616a797e181233.tar.gz | |
recipes: Use -fcommon explicitly
This is needed with gcc 10
(From OE-Core rev: 312e9fe3f047547df4c21c8e666cc9aa70e15347)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/llvm/llvm_git.bb')
| -rw-r--r-- | meta/recipes-devtools/llvm/llvm_git.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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 = "\ | |||
| 92 | -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \ | 92 | -DLLVM_CONFIG_PATH=${STAGING_BINDIR_NATIVE}/llvm-config${PV} \ |
| 93 | " | 93 | " |
| 94 | 94 | ||
| 95 | CFLAGS += "-fcommon" | ||
| 96 | |||
| 95 | do_configure_prepend() { | 97 | do_configure_prepend() { |
| 96 | # Fix paths in llvm-config | 98 | # Fix paths in llvm-config |
| 97 | 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 | 99 | 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 |
