aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2024-01-23 18:59:12 +0000
committerThierry Thomas <thierry@FreeBSD.org>2024-01-23 19:09:49 +0000
commit22ba7292a1c9956f39d2004c0513bede7e2cbcee (patch)
tree24bb24b6ad78646c5fe7599dfd6087a1d26ffc99
parent184188b65d9806daedda9f3658d491db62d522ae (diff)
downloadports-22ba7292a1c9956f39d2004c0513bede7e2cbcee.tar.gz
ports-22ba7292a1c9956f39d2004c0513bede7e2cbcee.zip
net/mpich: apply the fix for clang 17 on all OSVERSION
clang-17 has been MFC’ed: do not check OSVERSION but rather COMPILER_VERSION. PR: 276035 Reported by: pmc (at) citylink.dinoex.sub.org
-rw-r--r--net/mpich/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mpich/Makefile b/net/mpich/Makefile
index 0a356031c872..5d47ba506aa9 100644
--- a/net/mpich/Makefile
+++ b/net/mpich/Makefile
@@ -76,9 +76,9 @@ CONFIGURE_ARGS= --enable-fast="" \
LIBS="-L${LOCALBASE}/lib -lepoll-shim -ljson-c -lm" \
BASH_SHELL=${LOCALBASE}/bin/bash
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
-.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500005
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} == 170
# linker error when compiling with llvm 17.0.6 on CURRENT - PR 276035
# To be removed with llvm-18
CONFIGURE_ENV+= ac_cv_sizeof___float128=0
@@ -115,4 +115,4 @@ post-extract:
post-patch:
${RM} -r ${WRKSRC}/www
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>