From 610b2e2dfd458d17faa81f319317a27ca2800eac Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sat, 26 Nov 2022 21:42:31 -0800 Subject: [PATCH] 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 && \