From fc927b77d6723222dbe83f6ccf896d6f8a70c6a4 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 3 Aug 2022 20:03:50 +0300 Subject: [PATCH] Disable llvm plugin for riscv targets Same as with Clang plugin. Signed-off-by: David Abdurachmanov --- annobin.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/annobin.spec b/annobin.spec index 7df01d7..309812d 100644 --- a/annobin.spec +++ b/annobin.spec @@ -36,7 +36,13 @@ URL: https://sourceware.org/annobin/ %bcond_without gccplugin # Use "--without llvmplugin" to disable the building of the annobin plugin for LLVM. +%ifnarch riscv64 %bcond_without llvmplugin +%else +# riscv64: LLVMgold.so: cannot open shared object file: No such file or directory +# In general Gold was never implemented for riscv. +%bcond_with llvmplugin +%endif # Set this to zero to disable the requirement for a specific version of gcc. # This should only be needed if there is some kind of problem with the version @@ -493,7 +499,7 @@ fi %changelog * Wed Aug 03 2022 David Abdurachmanov - 10.79-1.0.riscv64 - Fix riscv targets -- Disable clang plugin on riscv targets +- Disable clang and llvm plugins on riscv targets * Mon Jul 25 2022 Nick Clifton - 10.79-1 - Annocheck: Fixes for libannocheck.h.