summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Marsh <chrismarsh.c2@gmail.com>2024-06-05 03:16:52 -0600
committerGitHub <noreply@github.com>2024-06-05 02:16:52 -0700
commit8919677faf400a6fbdbe717057ad4fc7de3508f8 (patch)
tree21bb34c364f118f2db42a4ddbf86e71f5c80b331
parent858b185a0e4109d7c1a4787d550c18c50fe8efa9 (diff)
downloadspack-8919677faf400a6fbdbe717057ad4fc7de3508f8.tar.gz
spack-8919677faf400a6fbdbe717057ad4fc7de3508f8.tar.bz2
spack-8919677faf400a6fbdbe717057ad4fc7de3508f8.tar.xz
spack-8919677faf400a6fbdbe717057ad4fc7de3508f8.zip
Work around the linker incompatibility that exists with fortran and apple-clang (#44547)
-rw-r--r--var/spack/repos/builtin/packages/openmpi/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openmpi/package.py b/var/spack/repos/builtin/packages/openmpi/package.py
index f8a6c3c884..1eacea683e 100644
--- a/var/spack/repos/builtin/packages/openmpi/package.py
+++ b/var/spack/repos/builtin/packages/openmpi/package.py
@@ -986,6 +986,11 @@ class Openmpi(AutotoolsPackage, CudaPackage):
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()).