Compare commits

...

2 Commits

Author SHA1 Message Date
David Abdurachmanov c6a7aa3a22
Link to libm
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-10-25 14:27:11 +03:00
David Abdurachmanov 1e2abe42b2
Disable LTO on riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-10-24 18:22:12 +03:00
1 changed files with 10 additions and 2 deletions

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
@ -36,7 +40,7 @@ rm -f Makefile-static*
%build
%ifarch i686 armv7hl
%ifarch i686 armv7hl riscv64
export LDFLAGS="%{__global_ldflags} -lm"
%endif
%configure
@ -65,6 +69,10 @@ 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
- Link to libm
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild