Disable LTO on riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-10-24 18:22:12 +03:00
parent b17a327787
commit 1e2abe42b2
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -1,6 +1,6 @@
Name: spatialite-tools
Version: 5.0.1
Release: 3%{?dist}
Release: 3.0.riscv64%{?dist}
Summary: A set of useful CLI tools for SpatiaLite
# Add missing -lxml2
Patch0: spatialite-tools_lxml2.patch
@ -9,6 +9,10 @@ License: GPLv3+
Source0: http://www.gaia-gis.it/gaia-sins/%{name}-%{version}.tar.gz
URL: https://www.gaia-gis.it/fossil/spatialite-tools
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
BuildRequires: make
BuildRequires: expat-devel
BuildRequires: freexl-devel
@ -65,6 +69,9 @@ export LDFLAGS="%{__global_ldflags} -lm"
%{_bindir}/spatialite_xml2utf8
%changelog
* Mon Oct 24 2022 David Abdurachmanov <davidlt@rivosinc.com> - 5.0.1-3.0.riscv64
- Disable LTO on riscv64
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild