Disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-08-25 10:59:47 +03:00
parent fcfd26e5d6
commit bcfd3c89dc
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@
Name: libcxxabi
Version: %{libcxxabi_version}%{?rc_ver:~rc%{rc_ver}}
Release: 2%{?dist}
Release: 2.0.riscv64%{?dist}
Summary: Low level support for a standard C++ library
License: MIT or NCSA
URL: http://libcxxabi.llvm.org/
@ -51,7 +51,7 @@ Summary: Static libraries for libcxxabi
sed -i 's|${LLVM_BINARY_DIR}/share/llvm/cmake|%{_libdir}/cmake/llvm|g' CMakeLists.txt
%build
%ifarch armv7hl
%ifarch armv7hl riscv64
# Disable LTO on ARM. bfd crashes during some of the CMake compiler checks with:
# /usr/bin/ld: BFD version 2.35-10.fc33 internal error, aborting at elfcode.h:224 in bfd_elf32_swap_symbol_out
%global _lto_cflags %{nil}
@ -102,6 +102,9 @@ cp -a include/* %{buildroot}%{_includedir}
%{_libdir}/libc++abi.a
%changelog
* Thu Aug 25 2022 David Abdurachmanov <davidlt@rivosinc.com> - 14.0.5-2.0.riscv64
- Disable LTO on riscv64
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 14.0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild