Fix build error for gcc 12
This commit is contained in:
parent
5eeee6ada2
commit
6963e84232
@ -1,6 +1,6 @@
|
||||
Name: rocksdb
|
||||
Version: 6.8.1
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: A Persistent Key-Value Store for Flash and RAM Storage
|
||||
|
||||
License: GPLv2 and Apache 2.0 License
|
||||
@ -60,6 +60,7 @@ 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"
|
||||
export DISABLE_WARNING_AS_ERROR=1
|
||||
%ifnarch riscv64
|
||||
%make_build shared_lib
|
||||
%else
|
||||
@ -103,6 +104,9 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja
|
||||
%{_javadir}/%{name}jni/%{name}jni.jar
|
||||
|
||||
%changelog
|
||||
* Fri Aug 4 2023 liyanan <thistleslyn@163.com> - 6.8.1-6
|
||||
- Fix build error for gcc 12
|
||||
|
||||
* Mon Apr 10 2023 laokz <zhangkai@iscas.ac.cn> - 6.8.1-5
|
||||
- Fix building on RISC-V by setting PORTABLE to 1
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user