Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions classes/clang-legacy.bbclass
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Add the necessary override
LTO:toolchain-clang:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto -fuse-ld=lld', d)}"
LTO:toolchain-clang:class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin', '-flto -fuse-ld=lld', d)}"
LTO:toolchain-clang:class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin -ffat-lto-objects', '-flto -ffat-lto-objects -fuse-ld=lld', d)}"
LTO:toolchain-clang:class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flto=thin -ffat-lto-objects', '-flto -ffat-lto-objects -fuse-ld=lld', d)}"
SELECTED_OPTIMIZATION:remove:toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-fuse-ld=lld', '', d)}"

# Reconcile some ppc anamolies
TUNE_CCARGS:remove:toolchain-clang:powerpc = "-mhard-float -mno-spe"
Expand Down
9 changes: 9 additions & 0 deletions conf/nonclangable.conf
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,15 @@ LTO:pn-libidn2:toolchain-clang = ""
#libcairo.so: undefined reference to pthread_mutexattr_init [--no-allow-shlib-undefined]
LTO:pn-cairo:toolchain-clang = ""

# zlib does not build with lld, keep it until https://github.com/madler/zlib/pull/936
# is addressed
# When not using the lld linker and using the bfd linker, the LLVMgold.so plugin must be used, but the gold linker has been deprecated.
LTO:pn-zlib:toolchain-clang = ""

# When not using the lld linker and using the bfd linker, the LLVMgold.so plugin must be used, but the gold linker has been deprecated.
LTO:pn-bluez5:toolchain-clang = ""
LTO:pn-systemd-boot:toolchain-clang = ""

# Subprocess output:mips-yoe-linux-llvm-objcopy: error: Link field value 22 in section .rel.dyn is not a symbol table
# also seen on riscv64 and x86-64
OBJCOPY:pn-linux-variscite:toolchain-clang = "${HOST_PREFIX}objcopy"
Expand Down