From e2d2a029ee122b9cf25f8296c6ce610bf6bebbf6 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 8 Jan 2021 11:46:48 -0800 Subject: qemu: Link with latomic on clang/x86 clang delegates atomics to runtime library instead of builtins so link in libatomic on x86/gnu Signed-off-by: Khem Raj --- conf/nonclangable.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 0402450..5afed6f 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -279,6 +279,7 @@ COMPILER_RT_pn-qtbase_toolchain-clang_riscv32 = "--rtlib=compiler-rt ${UNWINDLIB LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" LDFLAGS_append_pn-qtwebengine_toolchain-clang_runtime-gnu_x86 = " -latomic" +LDFLAGS_append_pn-qemu_toolchain-clang_runtime-gnu_x86 = " -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 -- cgit v1.2.3-54-g00ecf