From 1e2abe42b2f8b99322a0a7443ec37c27cea05723 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Mon, 24 Oct 2022 18:22:12 +0300 Subject: [PATCH] Disable LTO on riscv64 Signed-off-by: David Abdurachmanov --- spatialite-tools.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spatialite-tools.spec b/spatialite-tools.spec index d610a79..8acfcab 100644 --- a/spatialite-tools.spec +++ b/spatialite-tools.spec @@ -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 - 5.0.1-3.0.riscv64 +- Disable LTO on riscv64 + * Sat Jul 23 2022 Fedora Release Engineering - 5.0.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild