Avoid LTO on riscv64 to avoid large memory usage

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-10-17 14:52:23 +03:00
parent 3129912180
commit ed37bea9e7
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -65,7 +65,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 14
Version: %{majorversion}.3
Release: 8%{?dist}
Release: 8.0.riscv64%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -470,7 +470,7 @@ find . -type f -name .gitignore | xargs rm
%build
# Avoid LTO on armv7hl as it runs out of memory
%ifarch armv7hl s390x
%ifarch armv7hl s390x riscv64
%define _lto_cflags %{nil}
%endif
# fail quickly and obviously if user tries to build as root
@ -1262,6 +1262,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Mon Oct 17 2022 David Abdurachmanov <davidlt@rivosinc.com> - 14.3-8.0.riscv64
- Disable LTO for riscv64 to avoid large memory usage
* Mon Aug 01 2022 Frantisek Zatloukal <fzatlouk@redhat.com> - 14.3-8
- Rebuilt for ICU 71.1