From 7c7b79cae6302999851230cf1d186ad5153b99a9 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Fri, 30 Nov 2018 16:02:37 +0000 Subject: 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. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure') 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 -- cgit v1.2.1