summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-03-04 13:46:26 -0800
committerKhem Raj <raj.khem@gmail.com>2019-03-04 13:46:26 -0800
commita78fabe9c3b6e07edee092e6f02e9bd9690a70e5 (patch)
treeb78f8d099bb6cd612428eb81908f72f60accc1b5
parenta9fae0e31fb9c0c7241d9453b3763562e7d2f8d1 (diff)
downloadmeta-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.conf7
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)
188LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt" 188LDFLAGS_append_pn-ruby_toolchain-clang = " -rtlib=compiler-rt"
189LDFLAGS_append_pn-m4_toolchain-clang = " -rtlib=compiler-rt" 189LDFLAGS_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)
194COMPILER_RT_pn-libc-bench_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc"
195COMPILER_RT_pn-aufs-util_libc-glibc_toolchain_clang_arm = "--rtlib=libgcc"
196COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchaon-clang_arm = "--rtlib=libgcc"