From d8053b865ce90ee02fb4829a9b24a98d16bf386f Mon Sep 17 00:00:00 2001 From: zhangxiang Date: Sat, 29 Jul 2023 20:30:42 +0800 Subject: [PATCH] add cflags for gcc build --- rocksdb.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rocksdb.spec b/rocksdb.spec index ac795f6..4f9bf05 100644 --- a/rocksdb.spec +++ b/rocksdb.spec @@ -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 @@ -57,7 +57,7 @@ mkdir -p java/test-libs cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} java/test-libs %build -export CFLAGS="%{optflags}" +export CFLAGS="%{optflags} -Wno-range-loop-construct -Wno-maybe-uninitialized -Wno-restrict" # 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 @@ -103,6 +103,9 @@ install -D -m 0644 java/target/%{name}jni-%{version}-linux$(getconf LONG_BIT).ja %{_javadir}/%{name}jni/%{name}jni.jar %changelog +* Thu Jul 20 2023 zhangxiang - 6.8.1-6 +- Add cflags for gcc build + * Mon Apr 10 2023 laokz - 6.8.1-5 - Fix building on RISC-V by setting PORTABLE to 1 -- Gitee