diff options
author | Gleb Popov <arrowd@FreeBSD.org> | 2025-09-06 22:52:10 +0300 |
---|---|---|
committer | Gleb Popov <arrowd@FreeBSD.org> | 2025-09-06 23:01:19 +0300 |
commit | 03d91067730171f7eb04031f8f11d5105c5900dd (patch) | |
tree | e784a7352e0d1cc0a3b21c71892b2bc91a290551 | |
parent | math/hsl: Constrain to gfortran (diff) |
science/cgnslib: Fix building with Flang
-rw-r--r-- | science/cgnslib/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/science/cgnslib/Makefile b/science/cgnslib/Makefile index 471819e7794c..45a191615689 100644 --- a/science/cgnslib/Makefile +++ b/science/cgnslib/Makefile @@ -23,7 +23,7 @@ MAKE_JOBS_UNSAFE= yes #CMAKE_ARGS= -DOpenGL_GL_PREFERENCE:STRING="GLVND" CMAKE_ARGS= -DOpenGL_GL_PREFERENCE:STRING="LEGACY" -FFLAGS+= -fPIC -std=legacy +FFLAGS= -fPIC TEST_TARGET= test OPTIONS_DEFINE= FORTRAN HDF5 TESTS TOOLS @@ -59,6 +59,10 @@ TOOLS_CMAKE_ON= -DTCL_INCLUDE_PATH:STRING="${TCL_INCLUDEDIR}" \ CFLAGS+= -Wno-error=incompatible-function-pointer-types .endif +.if ${FORTRAN_DEFAULT} != flang +FFLAGS+= -std=legacy +.endif + pre-configure: ${REINPLACE_CMD} -e 's|tk-private/||' ${WRKSRC}/src/cgnstools/tkogl/tkogl.c |