mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix: snappy not supported in rocksdb
close #2082 Signed-off-by: yuxiaobo <yuxiaobo@oppo.com>
This commit is contained in:
parent
4420ff881b
commit
460b6016bb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user