summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--classes/clang.bbclass6
-rw-r--r--conf/nonclangable.conf52
2 files changed, 29 insertions, 29 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass
index d6a7fe8..a56084d 100644
--- a/classes/clang.bbclass
+++ b/classes/clang.bbclass
@@ -13,8 +13,8 @@ LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flt
13PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src" 13PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src"
14 14
15COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" 15COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}"
16COMPILER_RT_powerpc = "--rtlib=libgcc ${UNWINDLIB}" 16COMPILER_RT_powerpc = "-rtlib=libgcc ${UNWINDLIB}"
17COMPILER_RT_armeb = "--rtlib=libgcc ${UNWINDLIB}" 17COMPILER_RT_armeb = "-rtlib=libgcc ${UNWINDLIB}"
18 18
19UNWINDLIB ??= "${@bb.utils.contains("RUNTIME", "llvm", "--unwindlib=libgcc", "", d)}" 19UNWINDLIB ??= "${@bb.utils.contains("RUNTIME", "llvm", "--unwindlib=libgcc", "", d)}"
20UNWINDLIB_riscv64 = "--unwindlib=libgcc" 20UNWINDLIB_riscv64 = "--unwindlib=libgcc"
@@ -89,7 +89,7 @@ def clang_base_deps(d):
89 if not d.getVar('INHIBIT_DEFAULT_DEPS', False): 89 if not d.getVar('INHIBIT_DEFAULT_DEPS', False):
90 if not oe.utils.inherits(d, 'allarch') : 90 if not oe.utils.inherits(d, 'allarch') :
91 ret = " clang-cross-${TARGET_ARCH} virtual/libc " 91 ret = " clang-cross-${TARGET_ARCH} virtual/libc "
92 if (d.getVar('COMPILER_RT').find('--rtlib=compiler-rt') != -1): 92 if (d.getVar('COMPILER_RT').find('-rtlib=compiler-rt') != -1):
93 ret += " compiler-rt " 93 ret += " compiler-rt "
94 else: 94 else:
95 ret += " libgcc " 95 ret += " libgcc "
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf
index f889df2..b174603 100644
--- a/conf/nonclangable.conf
+++ b/conf/nonclangable.conf
@@ -271,24 +271,24 @@ TUNE_CCARGS_remove_pn-pulseaudio_toolchain-clang = "-Qunused-arguments"
271 271
272#| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' 272#| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4'
273#| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) 273#| clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
274COMPILER_RT_pn-ruby_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 274COMPILER_RT_pn-ruby_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
275COMPILER_RT_pn-python3_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 275COMPILER_RT_pn-python3_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
276COMPILER_RT_pn-m4_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 276COMPILER_RT_pn-m4_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
277COMPILER_RT_pn-cpio_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 277COMPILER_RT_pn-cpio_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
278COMPILER_RT_pn-openssh_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 278COMPILER_RT_pn-openssh_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
279COMPILER_RT_pn-webkitgtk_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 279COMPILER_RT_pn-webkitgtk_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
280COMPILER_RT_pn-wpewebkit_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 280COMPILER_RT_pn-wpewebkit_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
281COMPILER_RT_pn-python3-numpy_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" 281COMPILER_RT_pn-python3-numpy_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}"
282COMPILER_RT_remove_pn-m4_powerpc = "--rtlib=compiler-rt" 282COMPILER_RT_remove_pn-m4_powerpc = "-rtlib=compiler-rt"
283COMPILER_RT_remove_pn-ruby_powerpc = "--rtlib=compiler-rt" 283COMPILER_RT_remove_pn-ruby_powerpc = "-rtlib=compiler-rt"
284COMPILER_RT_remove_pn-webkitgtk_powerpc = "--rtlib=compiler-rt" 284COMPILER_RT_remove_pn-webkitgtk_powerpc = "-rtlib=compiler-rt"
285COMPILER_RT_remove_pn-m4_armeb = "--rtlib=compiler-rt" 285COMPILER_RT_remove_pn-m4_armeb = "-rtlib=compiler-rt"
286COMPILER_RT_remove_pn-ruby_armeb = "--rtlib=compiler-rt" 286COMPILER_RT_remove_pn-ruby_armeb = "-rtlib=compiler-rt"
287COMPILER_RT_remove_pn-webkitgtk_armeb = "--rtlib=compiler-rt" 287COMPILER_RT_remove_pn-webkitgtk_armeb = "-rtlib=compiler-rt"
288 288
289# build/lib/libQt5Widgets.so: undefined reference to `__lshrti3' 289# build/lib/libQt5Widgets.so: undefined reference to `__lshrti3'
290# __lshrti3 is missing in libgcc 290# __lshrti3 is missing in libgcc
291COMPILER_RT_pn-qtbase_toolchain-clang_riscv32 = "--rtlib=compiler-rt ${UNWINDLIB}" 291COMPILER_RT_pn-qtbase_toolchain-clang_riscv32 = "-rtlib=compiler-rt ${UNWINDLIB}"
292 292
293LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" 293LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic"
294LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" 294LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic"
@@ -298,21 +298,21 @@ LDFLAGS_append_pn-qemu_toolchain-clang_runtime-gnu_x86 = " -latomic"
298# glibc is built with gcc and hence encodes some libgcc specific builtins which are not found 298# glibc is built with gcc and hence encodes some libgcc specific builtins which are not found
299# when doing static linking with clang using compiler-rt, so use libgcc 299# when doing static linking with clang using compiler-rt, so use libgcc
300# undefined reference to `__unordtf2' 300# undefined reference to `__unordtf2'
301COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" 301COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc"
302COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" 302COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc"
303COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" 303COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc"
304COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" 304COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc"
305COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" 305COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc"
306COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" 306COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc"
307COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" 307COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc"
308COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" 308COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc"
309 309
310#(unwind.o): in function `__pthread_unwind': 310#(unwind.o): in function `__pthread_unwind':
311#/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' 311#/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind'
312#clang-8: error: linker command failed with exit code 1 (use -v to see invocation) 312#clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
313COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" 313COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc"
314COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" 314COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc"
315COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" 315COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc"
316 316
317# Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so 317# Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so
318# let same compiler ( gcc or clang) be native/cross compiler 318# let same compiler ( gcc or clang) be native/cross compiler