Set PORTABLE=ON to avoid -march=native

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-06-22 19:37:43 +02:00
parent 861353b5e2
commit f3144d31d1
Signed by: davidlt
GPG Key ID: 7108702C938B13C1
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: rocksdb
Version: 5.7.3
Release: 3%{?dist}
Release: 3.0.riscv64%{?dist}
Summary: A Persistent Key-Value Store for Flash and RAM Storage
License: BSD
@ -46,7 +46,8 @@ make %{?_smp_mflags} shared_lib
make install-shared \
INSTALL_PREFIX=%{buildroot}\
LIB_INSTALL_DIR=%{_libdir}\
INCLUDE_INSTALL_DIR=%{_includedir}
INCLUDE_INSTALL_DIR=%{_includedir}\
PORTABLE=ON
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -64,6 +65,9 @@ make install-shared \
%{_includedir}/*
%changelog
* Fri Jun 22 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 5.7.3-3.0.riscv64
- Set PORTABLE=ON to avoid -march=native
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 5.7.3-3
- Rebuild to fix GCC 8 mis-compilation
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")