git: d12f454e3692 - main - net/mpich: work-around to build the dependencies on -CURRENT

From: Thierry Thomas <thierry_at_FreeBSD.org>
Date: Sun, 31 Dec 2023 11:40:34 UTC
The branch main has been updated by thierry:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d12f454e3692d7fbb8e95e4da0cb84f2d7c753a5

commit d12f454e3692d7fbb8e95e4da0cb84f2d7c753a5
Author:     Thierry Thomas <thierry@FreeBSD.org>
AuthorDate: 2023-12-31 11:34:41 +0000
Commit:     Thierry Thomas <thierry@FreeBSD.org>
CommitDate: 2023-12-31 11:40:31 +0000

    net/mpich: work-around to build the dependencies on -CURRENT
    
    Since the switch from clang-16 to 17.0.6 on -CURRENT, MPICH encounters
    linker errors.
    
    A work-around to force the usage of clang <= 16 has been introduced in
    eb36006fdb70, but when the compiler has been forced to build, it must be
    kept to build the dependencies.
    
    PR:             276035
---
 net/mpich/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/mpich/Makefile b/net/mpich/Makefile
index f97f283e6faa..c6cf30ae79e2 100644
--- a/net/mpich/Makefile
+++ b/net/mpich/Makefile
@@ -79,8 +79,8 @@ CONFIGURE_ARGS=	--enable-fast=""	\
 .include <bsd.port.options.mk>
 
 .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1500005
-# linker error when compiling with llvm 17.0.6 on CURRENT
-USES+=			llvm:max=16
+# linker error when compiling with llvm 17.0.6 on CURRENT - PR 276035
+USES+=			llvm:lib,max=16
 CHOSEN_COMPILER_TYPE=	clang
 .endif