aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2025-09-13 20:43:03 +0000
committerGleb Popov <arrowd@FreeBSD.org>2025-09-13 20:43:18 +0000
commit6b70a25ae5d43d0b6f66659aff7b4612faf4e2de (patch)
tree41cee3aafe7558983ab70a43e8693edd0ba8d95d /math
parent00d241bb50a1e8ec79bff2ec6f0127126079e03d (diff)
Diffstat (limited to 'math')
-rw-r--r--math/ddfun/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/math/ddfun/Makefile b/math/ddfun/Makefile
index e4614a4e12e5..3d620bb7aaee 100644
--- a/math/ddfun/Makefile
+++ b/math/ddfun/Makefile
@@ -19,10 +19,16 @@ BUILD_WRKSRC= ${WRKSRC}/fortran
OPTIONS_DEFINE= DOCS EXAMPLES
+.include <bsd.port.pre.mk>
+
pre-configure:
.for f in gnu-complib-dd.scr gnu-complink-dd.scr
${REINPLACE_CMD} -e 's|-O3|${FFLAGS}|' ${BUILD_WRKSRC}/${f}
.endfor
+.if ${FORTRAN_DEFAULT} == flang
+# https://github.com/llvm/llvm-project/issues/158436
+ ${REINPLACE_CMD} -e 's|-fno-expensive-optimizations||g' ${BUILD_WRKSRC}/gnu-complib-dd.scr
+.endif
do-build:
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ./gnu-complib-dd.scr
@@ -51,4 +57,4 @@ do-install-DOCS-on:
do-test:
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ./gnu-ddfun-tests.scr
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>