From df3d68c630bd432ef8b2f601c26953ce528bc622 Mon Sep 17 00:00:00 2001 From: Kouhei Sutou Date: Wed, 11 Jul 2018 09:08:03 +0900 Subject: [PATCH] [C++] Stop to use -jN in sub make It may break parallel build in some cases such as building deb packages case. --- cpp/build-support/build-lz4-lib.sh | 6 +++++- cpp/build-support/build-zstd-lib.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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