git: 610b2e2dfd45 - main - science/spglib: Correct workaround for missing -lomp for fortran
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Nov 2022 05:49:24 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=610b2e2dfd458d17faa81f319317a27ca2800eac
commit 610b2e2dfd458d17faa81f319317a27ca2800eac
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-27 05:42:31 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-27 05:49:19 +0000
science/spglib: Correct workaround for missing -lomp for fortran
Reported by: fallout
---
science/spglib/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/science/spglib/Makefile b/science/spglib/Makefile
index a4f8a8aadddf..9867ed6b8a05 100644
--- a/science/spglib/Makefile
+++ b/science/spglib/Makefile
@@ -16,6 +16,8 @@ USE_LDCONFIG= yes
.if !exists(/usr/include/omp.h)
CMAKE_OFF+= USE_OMP
+.else
+FORTRAN_LDFLAGS= -lomp # workaround for: undefined reference to `__kmpc_fork_call'
.endif
OPTIONS_DEFINE= FORTRAN
@@ -24,7 +26,6 @@ OPTIONS_SUB= yes
FORTRAN_USES= fortran
FORTRAN_CMAKE_BOOL= WITH_Fortran
-FORTRAN_LDFLAGS= -lomp # workaround for: undefined reference to `__kmpc_fork_call'
do-test: # from test/README.md
cd ${WRKSRC}/test && \