From eb35f4cb614284b9da8a0548468bb3ab9d5532a1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 10 Sep 2019 21:23:50 -0700 Subject: libc-bench,libhugetlbfs,tsocks: Link with libgcc on clang/x86 glibc links with libgcc and therefore expects libgcc symbols during static linking as well Signed-off-by: Khem Raj --- conf/nonclangable.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 4862be6..1b2d57e 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -216,6 +216,13 @@ LDFLAGS_remove_pn-m4_powerpc = "-rtlib=compiler-rt" LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" +# glibc is built with gcc and hence encodes some libgcc specific builtins which are not found +# when doing static linking with clang using compiler-rt, so use libgcc +# undefined reference to `__unordtf2' +COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" +COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" +COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" +COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" #(unwind.o): in function `__pthread_unwind': #/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' -- cgit v1.2.3-54-g00ecf