From 9d29c9aaa2b71ea0db193b36bcae2cfba7f8ebd6 Mon Sep 17 00:00:00 2001 From: edoapra Date: Tue, 21 Oct 2025 21:56:19 -0700 Subject: [PATCH] freebsd --- src/libext/scalapack/build_scalapa.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libext/scalapack/build_scalapa.sh b/src/libext/scalapack/build_scalapa.sh index 64f1bc2351..5bb3760bb4 100755 --- a/src/libext/scalapack/build_scalapa.sh +++ b/src/libext/scalapack/build_scalapa.sh @@ -352,7 +352,13 @@ if [[ "$?" != "0" ]]; then cat $(find . -name *log) exit 1 fi -make V=0 -j3 scalapack/fast +GOTFREEBSD=$(uname -o 2>&1|awk ' /FreeBSD/ {print "1";exit}') +MYMAKE=make +if [[ "${GOTFREEBSD}" == 1 ]]; then + MAKEJ="MAKE_NB_JOBS=1" + MYMAKE=gmake +fi +$MYMAKE V=0 -j3 scalapack/fast if [[ "$?" != "0" ]]; then echo " " echo "compilation failed"