summaryrefslogtreecommitdiffstats
path: root/conf/nonclangable.conf
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-09-10 21:23:50 -0700
committerKhem Raj <raj.khem@gmail.com>2019-09-11 08:30:15 -0700
commiteb35f4cb614284b9da8a0548468bb3ab9d5532a1 (patch)
treef55dea3871b92a0a56ec223cdb59be4a43d23b02 /conf/nonclangable.conf
parent41ef02b0c594f2e77fb17c1e71cc061e835101bc (diff)
downloadmeta-clang-eb35f4cb614284b9da8a0548468bb3ab9d5532a1.tar.gz
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 <raj.khem@gmail.com>
Diffstat (limited to 'conf/nonclangable.conf')
-rw-r--r--conf/nonclangable.conf7
1 files changed, 7 insertions, 0 deletions
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"
216LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" 216LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic"
217LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" 217LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic"
218 218
219# glibc is built with gcc and hence encodes some libgcc specific builtins which are not found
220# when doing static linking with clang using compiler-rt, so use libgcc
221# undefined reference to `__unordtf2'
222COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc"
223COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc"
224COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc"
225COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc"
219 226
220#(unwind.o): in function `__pthread_unwind': 227#(unwind.o): in function `__pthread_unwind':
221#/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' 228#/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind'