diff --git a/cpp/build-support/build-lz4-lib.sh b/cpp/build-support/build-lz4-lib.sh index 8cb5c18782a..d33686655a8 100755 --- a/cpp/build-support/build-lz4-lib.sh +++ b/cpp/build-support/build-lz4-lib.sh @@ -18,4 +18,8 @@ # under the License. # export CFLAGS="${CFLAGS} -O3 -fPIC" -make -j4 +if [ -z "$MAKELEVEL" ]; then + make -j4 +else + make +fi diff --git a/cpp/build-support/build-zstd-lib.sh b/cpp/build-support/build-zstd-lib.sh index 8cb5c18782a..d33686655a8 100755 --- a/cpp/build-support/build-zstd-lib.sh +++ b/cpp/build-support/build-zstd-lib.sh @@ -18,4 +18,8 @@ # under the License. # export CFLAGS="${CFLAGS} -O3 -fPIC" -make -j4 +if [ -z "$MAKELEVEL" ]; then + make -j4 +else + make +fi