Disable LTO and enable Clang & LLVM plugins for riscv64
Disable LTO trying to avoid issues like: [..] LLVMgold.so: cannot open shared object file: No such file or directory [..] Remember that gold linker is not ported to riscv64. Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
90ec147508
commit
ae694799b2
21
annobin.spec
21
annobin.spec
|
@ -1,12 +1,15 @@
|
||||||
%ifarch riscv64
|
%ifarch riscv64
|
||||||
# Empty %%files file /builddir/build/BUILD/annobin-10.79/debugsourcefiles.list
|
# Empty %%files file /builddir/build/BUILD/annobin-10.79/debugsourcefiles.list
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
|
# Disable LTO: LLVMgold.so: cannot open shared object file: No such file or directory
|
||||||
|
%global _lto_cflags %nil
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Annotate and examine compiled binary files
|
Summary: Annotate and examine compiled binary files
|
||||||
Version: 10.79
|
Version: 10.79
|
||||||
Release: 1.0.riscv64%{?dist}
|
Release: 1.1.riscv64%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://sourceware.org/annobin/
|
URL: https://sourceware.org/annobin/
|
||||||
# Maintainer: nickc@redhat.com
|
# Maintainer: nickc@redhat.com
|
||||||
|
@ -28,25 +31,13 @@ URL: https://sourceware.org/annobin/
|
||||||
%bcond_with debuginfod
|
%bcond_with debuginfod
|
||||||
|
|
||||||
# Use "--without clangplugin" to disable the building of the annobin plugin for Clang.
|
# Use "--without clangplugin" to disable the building of the annobin plugin for Clang.
|
||||||
%ifnarch riscv64
|
|
||||||
%bcond_without clangplugin
|
%bcond_without clangplugin
|
||||||
%else
|
|
||||||
# riscv64: LLVMgold.so: cannot open shared object file: No such file or directory
|
|
||||||
# In general Gold was never implemented for riscv.
|
|
||||||
%bcond_with clangplugin
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# Use "--without gccplugin" to disable the building of the annobin plugin for GCC.
|
# Use "--without gccplugin" to disable the building of the annobin plugin for GCC.
|
||||||
%bcond_without gccplugin
|
%bcond_without gccplugin
|
||||||
|
|
||||||
# Use "--without llvmplugin" to disable the building of the annobin plugin for LLVM.
|
# Use "--without llvmplugin" to disable the building of the annobin plugin for LLVM.
|
||||||
%ifnarch riscv64
|
|
||||||
%bcond_without llvmplugin
|
%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.
|
# 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
|
# This should only be needed if there is some kind of problem with the version
|
||||||
|
@ -501,6 +492,10 @@ fi
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 03 2022 David Abdurachmanov <davidlt@rivosinc.com> - 10.79-1.1.riscv64
|
||||||
|
- Disable LTO for riscv64
|
||||||
|
- Enable Clang and LLVM plugins
|
||||||
|
|
||||||
* Wed Aug 03 2022 David Abdurachmanov <davidlt@rivosinc.com> - 10.79-1.0.riscv64
|
* Wed Aug 03 2022 David Abdurachmanov <davidlt@rivosinc.com> - 10.79-1.0.riscv64
|
||||||
- Fix riscv targets
|
- Fix riscv targets
|
||||||
- Disable clang and llvm plugins on riscv targets
|
- Disable clang and llvm plugins on riscv targets
|
||||||
|
|
Loading…
Reference in New Issue