diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-03-04 13:46:26 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-03-04 13:46:26 -0800 |
commit | a78fabe9c3b6e07edee092e6f02e9bd9690a70e5 (patch) | |
tree | b78f8d099bb6cd612428eb81908f72f60accc1b5 | |
parent | a9fae0e31fb9c0c7241d9453b3763562e7d2f8d1 (diff) | |
download | meta-clang-a78fabe9c3b6e07edee092e6f02e9bd9690a70e5.tar.gz |
recipes: Link with libgcc when building static versions on arm
since llvm libunwind does not provide all the symbols that
glibc/libpthread expects when doing static linking it fails with
some undefined symbols e.g.
/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind'
which is found in libgcc_s.so, ideally one day clang unwind library
should get there
this is only an issue on glibc, musl works ok
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | conf/nonclangable.conf | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 073004e..bcf9add 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -187,3 +187,10 @@ TUNE_CCARGS_remove_pn-omxplayer_toolchain-clang = "-no-integrated-as" | |||
187 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) | 187 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) |
188 | LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" | 188 | LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" |
189 | LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" | 189 | LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" |
190 | |||
191 | #(unwind.o): in function `__pthread_unwind': | ||
192 | #/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' | ||
193 | #clang-8: error: linker command failed with exit code 1 (use -v to see invocation) | ||
194 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc" | ||
195 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc" | ||
196 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchaon-clang_arm = "--rtlib=libgcc" | ||