aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-30 16:02:37 +0000
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2018-11-30 16:09:57 +0000
commit7c7b79cae6302999851230cf1d186ad5153b99a9 (patch)
treeb0176d881511291029379c90be837004d4dc821d /configure
parentd068937a9fe037871fa89759122fc7df9056683d (diff)
Setting libgit2 to build statically in any case
On the Libgit2 webpage, it has recommended to build it statically on Mac systems. By default we are doing this on Linux systems, but the `-static' flag failed on Mac. But apparently CMake might be able to deal with the issue in a different way.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index b10f536..840a350 100755
--- a/configure
+++ b/configure
@@ -591,8 +591,8 @@ fi
# some versions of Make complain about not having enough 'pipe' (memory) on
# some systems. After some searching, I found out its because of too many
# threads.
-if which nproc 2> /dev/null; then numthreads=$(nproc --all);
-else numthreads=4;
+if which nproc &> /dev/null; then numthreads=$(nproc --all);
+else numthreads=2;
fi
make -f reproduce/src/make/dependencies-basic.mk \
static_build=$static_build -j$numthreads