science/cgnslib: Fix building with Flang

This commit is contained in:
Gleb Popov 2025-09-06 22:52:10 +03:00
parent 049a620ca2
commit 03d9106773
1 changed files with 5 additions and 1 deletions

View File

@ -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