From cebe76c064bf965148959f20f8c0c49daf968d84 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 7 Nov 2020 09:37:07 -0800 Subject: qtbase: Use compiler-rt on riscv32 when using clang clang emits __lshrti3 expecting it from builtins library but libgcc does not have it, since we have compiler-rt support it because its compiled with -fforce-enable-int128 so link with it Signed-off-by: Khem Raj --- conf/nonclangable.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 20fb71b..b948678 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -254,6 +254,10 @@ COMPILER_RT_remove_pn-m4_armeb = "--rtlib=compiler-rt" COMPILER_RT_remove_pn-ruby_armeb = "--rtlib=compiler-rt" COMPILER_RT_remove_pn-webkitgtk_armeb = "--rtlib=compiler-rt" +# build/lib/libQt5Widgets.so: undefined reference to `__lshrti3' +# __lshrti3 is missing in libgcc +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" -- cgit v1.2.3-54-g00ecf