!20 增加riscv构建支持
From: @laokz Reviewed-by: @wang--ge Signed-off-by: @wang--ge
This commit is contained in:
commit
5eeee6ada2
@ -1,6 +1,6 @@
|
||||
Name: rocksdb
|
||||
Version: 6.8.1
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: A Persistent Key-Value Store for Flash and RAM Storage
|
||||
|
||||
License: GPLv2 and Apache 2.0 License
|
||||
@ -60,7 +60,11 @@ cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} java/test-libs
|
||||
export CFLAGS="%{optflags}"
|
||||
# librocksdb*.so* has undefined symbols dlopen and so on, “-ldl” needs to be added here
|
||||
export EXTRA_CXXFLAGS=" -std=c++11 %{optflags} -ldl"
|
||||
%ifnarch riscv64
|
||||
%make_build shared_lib
|
||||
%else
|
||||
PORTABLE=1 %make_build shared_lib
|
||||
%endif
|
||||
# build rocksdbjni
|
||||
export JAVA_HOME=%{_jvmdir}/java-1.8.0-openjdk
|
||||
export EXTRA_CXXFLAGS="${EXTRA_CXXFLAGS} -I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux"
|
||||
@ -99,6 +103,9 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja
|
||||
%{_javadir}/%{name}jni/%{name}jni.jar
|
||||
|
||||
%changelog
|
||||
* Mon Apr 10 2023 laokz <zhangkai@iscas.ac.cn> - 6.8.1-5
|
||||
- Fix building on RISC-V by setting PORTABLE to 1
|
||||
|
||||
* Tue Aug 23 2022 wulei <wulei80@h-partners.com> - 6.8.1-4
|
||||
- Fix binary not striped problem
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user