aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHe Zhe <zhe.he@windriver.com>2019-05-31 10:52:17 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2020-03-25 13:24:21 +0100
commit3123c8f15ec15fbc2b5c56a5f6a070fb8ff2f909 (patch)
tree195b717af12779a91e13c30aa4b215d09532fa3c
parent9e60d30669a2ad0598e9abf0cd15ee06b523986b (diff)
downloadmeta-openembedded-contrib-3123c8f15ec15fbc2b5c56a5f6a070fb8ff2f909.tar.gz
meta-openembedded-contrib-3123c8f15ec15fbc2b5c56a5f6a070fb8ff2f909.tar.bz2
meta-openembedded-contrib-3123c8f15ec15fbc2b5c56a5f6a070fb8ff2f909.zip
rocksdb: Fix build failure due to GCC9 deprecated-copy pessimizing-move
GCC9 introduce more stricter checks deprecated-copy and pessimizing-move, while rocksdb uses -Werror and causes the following build error. db/version_edit.h:178:33: error: implicitly-declared 'constexpr rocksdb::FileDescriptor::FileDescriptor(const rocksdb::FileDescriptor&)' is deprecated [-Werror=deprecated-copy] utilities/persistent_cache/persistent_cache_util.h:51:23: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move] Signed-off-by: He Zhe <zhe.he@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
index 9fd5ee15be..f812606e70 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_git.bb
@@ -35,6 +35,9 @@ EXTRA_OECMAKE = "\
-DWITH_TESTS=OFF \
-DWITH_TOOLS=OFF \
"
+do_compile_prepend() {
+ sed -i 's/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow")/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-error=shadow -Wno-error=deprecated-copy -Wno-error=pessimizing-move")/' ${S}/CMakeLists.txt
+}
do_install_append() {
# fix for qa check buildpaths