Disable LTO on aarch64 to fix the build (rhbz#2261344)

It turns out that disabling LTO fixes the build on aarch64. With this,
we can also re-enable self tests on aarch64.
This commit is contained in:
Kalev Lember 2024-02-08 23:13:05 +01:00
parent 9e54e2f553
commit bbfe2c4352
1 changed files with 11 additions and 2 deletions

View File

@ -35,7 +35,7 @@
# Ltest-resume-sig-rt
# test-ptrace
%ifarch aarch64 i686 ppc64le s390x
%ifarch i686 ppc64le s390x
%global test_failure_override true
%else
%global test_failure_override false
@ -46,7 +46,7 @@
Summary: An unwinding library
Name: libunwind
Version: 1.8.0
Release: 1%{?dist}
Release: 2%{?dist}
License: MIT
URL: http://savannah.nongnu.org/projects/libunwind
Source: https://github.com/libunwind/libunwind/releases/download/v%{version}/%{name}-%{version}.tar.gz
@ -81,6 +81,11 @@ libunwind.
%autosetup -p1 -n %{name}-%{version}
%build
%ifarch aarch64
# LTO causes FTBFS on aarch64 (rhbz#2261344)
%global _lto_cflags %{nil}
%endif
%global optflags %{optflags} -fcommon
aclocal
libtoolize --force
@ -131,6 +136,10 @@ echo ====================TESTING END=====================
%{_includedir}/libunwind*.h
%changelog
* Thu Feb 08 2024 Kalev Lember <klember@redhat.com> - 1.8.0-2
- Disable LTO on aarch64 to fix the build (rhbz#2261344)
- Re-enable tests on aarch64
* Mon Jan 29 2024 Tom Callaway <spot@fedoraproject.org> - 1.8.0-1
- update to 1.8.0