fix: snappy not supported in rocksdb

close #2082

Signed-off-by: yuxiaobo <yuxiaobo@oppo.com>
This commit is contained in:
yuxiaobo 2023-06-07 09:59:05 +08:00 committed by pengtianyue
parent 4420ff881b
commit 460b6016bb

View File

@ -203,7 +203,7 @@ build_rocksdb() {
if [ ${CCMAJOR} -ge 9 ]; then
FLAGS="-Wno-error=deprecated-copy -Wno-error=pessimizing-move"
fi
MAKECMDGOALS=static_lib make EXTRA_CXXFLAGS="-fPIC ${FLAGS} -I${BuildDependsIncludePath}" static_lib
PORTABLE=1 make EXTRA_CXXFLAGS="-fPIC ${FLAGS} -DZLIB -DBZIP2 -DSNAPPY -DLZ4 -DZSTD -I${BuildDependsIncludePath}" static_lib
if [ $? -ne 0 ]; then
exit 1
fi
@ -389,6 +389,14 @@ dist_clean() {
cmd=${1:-"all"}
if [ "${cmd}" == "dist_clean" ]; then
dist_clean
exit 0
elif [ "${cmd}" == "clean" ]; then
clean
exit 0
fi
pre_build
case "$cmd" in
@ -435,12 +443,6 @@ case "$cmd" in
"bcache")
build_bcache
;;
"clean")
clean
;;
"dist_clean")
dist_clean
;;
*)
;;
esac