diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-08-24 05:11:34 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-08-24 23:07:55 -0700 |
commit | 13854af51a6e363aed7f09e22ce0ba88a07b99f4 (patch) | |
tree | 18ac2bd9f6e7a0c21835d7c98a9053dea336679c /recipes-devtools/clang/libcxx_git.bb | |
parent | 079bc352310fdfda479f449bad6ab8f2d51c9e10 (diff) | |
download | meta-clang-13854af51a6e363aed7f09e22ce0ba88a07b99f4.tar.gz |
libcxx: Link with libgcc when using gcc to build
Fixes build errors due to missing unwind symbols
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/libcxx_git.bb')
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 5e8deb9..c4afe4d 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -16,6 +16,8 @@ DEPENDS_append_toolchain-clang = " virtual/${TARGET_PREFIX}compilerlibs" | |||
16 | TARGET_CXXFLAGS_remove_toolchain-clang = "--stdlib=libc++" | 16 | TARGET_CXXFLAGS_remove_toolchain-clang = "--stdlib=libc++" |
17 | TUNE_CCARGS_remove_toolchain-clang = "--rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++" | 17 | TUNE_CCARGS_remove_toolchain-clang = "--rtlib=compiler-rt --unwindlib=libunwind --stdlib=libc++" |
18 | 18 | ||
19 | LDFLAGS_append_toolchain-gcc = " -lgcc" | ||
20 | |||
19 | PACKAGECONFIG ??= "unwind" | 21 | PACKAGECONFIG ??= "unwind" |
20 | PACKAGECONFIG_toolchain-gcc = "" | 22 | PACKAGECONFIG_toolchain-gcc = "" |
21 | PACKAGECONFIG_powerpc = "" | 23 | PACKAGECONFIG_powerpc = "" |