Disable spinlocks on riscv64

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2019-07-19 08:43:43 +03:00
parent e6a3dbb942
commit 5f7ec11e1d
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 10 additions and 1 deletions

View File

@ -60,7 +60,7 @@ Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 11
Version: 11.4
Release: 1%{?dist}
Release: 1.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.
@ -422,6 +422,9 @@ export CFLAGS
# since that's still considered the default plpython version.
common_configure_options='
--disable-rpath
%ifarch riscv64
--disable-spinlocks
%endif
%if %beta
--enable-debug
--enable-cassert
@ -608,6 +611,9 @@ upgrade_configure ()
--host=%{_host} \
--prefix=%prev_prefix \
--disable-rpath \
%ifarch riscv64
--disable-spinlocks \
%endif
%if %beta
--enable-debug \
--enable-cassert \
@ -1210,6 +1216,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Fri Jul 19 2019 David Abdurachmanov <david.abdurachmanov@sifive.com> - 11.4-1.0.riscv64
- Disable spinlocks on RISC-V 64-bit (riscv64)
* Tue Jul 09 2019 Petr Kubat <pkubat@redhat.com> - 11.4-1
- New upstream version 11.4
https://www.postgresql.org/docs/11/release-11-4.html