From bbfe2c4352c2e806c6498d488a6fe85e4a950c1c Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 8 Feb 2024 23:13:05 +0100 Subject: [PATCH] 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. --- libunwind.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libunwind.spec b/libunwind.spec index 737e4d5..88a93de 100644 --- a/libunwind.spec +++ b/libunwind.spec @@ -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 - 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 - 1.8.0-1 - update to 1.8.0