Work around the linker incompatibility that exists with fortran and apple-clang (#44547)

This commit is contained in:
Chris Marsh 2024-06-05 03:16:52 -06:00 committed by GitHub
parent 858b185a0e
commit 8919677faf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -986,6 +986,11 @@ def configure_args(self):
spec = self.spec
config_args = ["--enable-shared", "--disable-silent-rules", "--disable-sphinx"]
# Work around incompatibility with new apple-clang linker
# https://github.com/open-mpi/ompi/issues/12427
if spec.satisfies("@5: %apple-clang@15:"):
config_args.append("--with-wrapper-fcflags=-Wl,-ld_classic")
# All rpath flags should be appended with self.compiler.cc_rpath_arg.
# Later, we might need to update share/openmpi/mpic++-wrapper-data.txt
# and mpifort-wrapper-data.txt (see filter_rpaths()).