From f99d19e6ac0f1bf3e6c9f494ff3c21721b219448 Mon Sep 17 00:00:00 2001 From: lyn1001 Date: Fri, 4 Aug 2023 15:24:34 +0800 Subject: [PATCH] Fix build error for gcc 12 (cherry picked from commit 6963e842325430bcdc71dc1a98b886591e5067cc) --- rocksdb.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rocksdb.spec b/rocksdb.spec index ac795f6..7ab5d8d 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 @@ -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 - 6.8.1-6 +- Fix build error for gcc 12 + * Mon Apr 10 2023 laokz - 6.8.1-5 - Fix building on RISC-V by setting PORTABLE to 1 -- Gitee