summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2024-12-24 09:48:27 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2024-12-26 11:48:19 +0100
commitcf23a14535c244837add5202657d1dd91649b81a (patch)
tree1a697cde4e62dd3874a6dc02216c27ba5e0473a4
parente2cfc7d262605b04e086f7ffb8af420cb451d2bf (diff)
math/sundials: unbreak on armv7
No OpenMP support on armv7 unfortunately. Approved by: portmgr (build fix blanket) MFH: 2024Q4 (cherry picked from commit 5ab1315a1675d0813b5920f0ab01368b006b683f)
-rw-r--r--math/sundials/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/math/sundials/Makefile b/math/sundials/Makefile
index 2844ca90e308..598a41cb2c44 100644
--- a/math/sundials/Makefile
+++ b/math/sundials/Makefile
@@ -25,6 +25,10 @@ FCFLAGS:= ${FFLAGS} # project checks that these flags are equal
OPTIONS_DEFINE= BLAS EXAMPLES KLU LAPACK MPI OPENMP
OPTIONS_DEFAULT= KLU LAPACK MPI OPENMP
+# no OpenMP on armv7
+.if !exists(/usr/include/omp.h)
+OPTIONS_EXCLUDE= OPENMP
+.endif
OPTIONS_GROUP= VECTORS
OPTIONS_GROUP_VECTORS= HYPRE PETSC
VECTORS_DESC= Alternative vector libraries