Compare commits

...

2 Commits

Author SHA1 Message Date
David Abdurachmanov edabf2228f
Fix PORTABLE usage
We don't use CMake, but Makefiles.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-22 22:36:05 +02:00
David Abdurachmanov f3144d31d1
Set PORTABLE=ON to avoid -march=native
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-22 19:37:43 +02:00
1 changed files with 6 additions and 3 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
@ -40,10 +40,10 @@ rm build_tools/gnu_parallel
%build
export CFLAGS="%{optflags}"
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags}"
make %{?_smp_mflags} shared_lib
PORTABLE=1 make %{?_smp_mflags} shared_lib PORTABLE=ON
%install
make install-shared \
PORTABLE=1 make install-shared \
INSTALL_PREFIX=%{buildroot}\
LIB_INSTALL_DIR=%{_libdir}\
INCLUDE_INSTALL_DIR=%{_includedir}
@ -64,6 +64,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")