diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-15 15:11:57 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-03-01 11:12:14 -0800 |
commit | d4226211a28a9c82be6b6390818076a22f148964 (patch) | |
tree | eb830b80fb88635113d01a08129b7e8546847ef0 /recipes-devtools/clang | |
parent | 826b12ef16e8624657a211e0c5e5ad02c92e1e19 (diff) | |
download | meta-clang-d4226211a28a9c82be6b6390818076a22f148964.tar.gz |
clang: Use shared-libs when building native clang as well
This ensures that llvm-config works properly, since target clang is
building shared libs, we should match it on clang native and nativesdk
as well, this helps in cross compiling packages which depend on
llvm-config to get llvm libs list during build/link
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang')
-rw-r--r-- | recipes-devtools/clang/clang_git.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index f759a70..87e426f 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb | |||
@@ -55,7 +55,7 @@ PACKAGECONFIG ??= "compiler-rt libcplusplus shared-libs lldb-wchar \ | |||
55 | ${@bb.utils.filter('DISTRO_FEATURES', 'thin-lto lto', d)} \ | 55 | ${@bb.utils.filter('DISTRO_FEATURES', 'thin-lto lto', d)} \ |
56 | rtti eh libedit terminfo \ | 56 | rtti eh libedit terminfo \ |
57 | " | 57 | " |
58 | PACKAGECONFIG_class-native = "rtti eh libedit" | 58 | PACKAGECONFIG_class-native = "rtti eh libedit shared-libs" |
59 | PACKAGECONFIG_class-nativesdk = "rtti eh libedit shared-libs ${@bb.utils.filter('DISTRO_FEATURES', 'thin-lto lto', d)}" | 59 | PACKAGECONFIG_class-nativesdk = "rtti eh libedit shared-libs ${@bb.utils.filter('DISTRO_FEATURES', 'thin-lto lto', d)}" |
60 | 60 | ||
61 | PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx,compiler-rt" | 61 | PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx,compiler-rt" |