mirror of https://git.FreeBSD.org/ports.git
science/cgnslib: Fix building with Flang
This commit is contained in:
parent
049a620ca2
commit
03d9106773
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue