diff --git a/scripts/build_static_deps.sh b/scripts/build_static_deps.sh index 8d617ff..a61c52e 100755 --- a/scripts/build_static_deps.sh +++ b/scripts/build_static_deps.sh @@ -17,7 +17,7 @@ REPO_DIR="${PWD}" ROCKSDB_LIB_DIR="${REPO_DIR}/vendor/rocksdb" BUILD_DEST="${REPO_DIR}/build/lib" - +: "${MAKE:=make}" [[ -z "$NPROC" ]] && NPROC=2 # number of CPU cores available @@ -32,12 +32,12 @@ export ROCKSDB_DISABLE_BZIP=1 export PORTABLE=1 export DEBUG_LEVEL=0 -make -C "${ROCKSDB_LIB_DIR}" -j${NPROC} liblz4.a libzstd.a --no-print-directory > /dev/null +${MAKE} -C "${ROCKSDB_LIB_DIR}" liblz4.a libzstd.a --no-print-directory > /dev/null export EXTRA_CFLAGS="-fpermissive -Wno-error -w -I${ROCKSDB_LIB_DIR}/lz4-1.9.4/lib -I${ROCKSDB_LIB_DIR}/zstd-1.5.5/lib -DLZ4 -DZSTD" export EXTRA_CXXFLAGS="-fpermissive -Wno-error -w -I${ROCKSDB_LIB_DIR}/lz4-1.9.4/lib -I${ROCKSDB_LIB_DIR}/zstd-1.5.5/lib -DLZ4 -DZSTD" -make -C "${ROCKSDB_LIB_DIR}" -j${NPROC} static_lib --no-print-directory > /dev/null +${MAKE} -C "${ROCKSDB_LIB_DIR}" static_lib --no-print-directory > /dev/null #cat "${REPO_DIR}/vendor/rocksdb/make_config.mk"