diff options
author | MatthewLieber <77356607+MatthewLieber@users.noreply.github.com> | 2023-03-03 16:29:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-03 13:29:59 -0800 |
commit | c0f48b30cf0cedb542f7b209a119bdfafb9a31d3 (patch) | |
tree | fd0533788fd5557cc586c6a7c12bc034cd62b1fb | |
parent | 046416479a7de64e53ab8831f870cbe5e45a5aa5 (diff) | |
download | spack-c0f48b30cf0cedb542f7b209a119bdfafb9a31d3.tar.gz spack-c0f48b30cf0cedb542f7b209a119bdfafb9a31d3.tar.bz2 spack-c0f48b30cf0cedb542f7b209a119bdfafb9a31d3.tar.xz spack-c0f48b30cf0cedb542f7b209a119bdfafb9a31d3.zip |
Start using paths found in extra_rpaths in compilers.yaml when building (#35376)
* Start using paths found in extra_rpaths in compilers.yaml when building
* running black and changing maintainer list
* changing import order to pass isort
---------
Co-authored-by: Matthew Lieber <lieber.31@osu.edu>
-rw-r--r-- | var/spack/repos/builtin/packages/mvapich/package.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/mvapich/package.py b/var/spack/repos/builtin/packages/mvapich/package.py index 4aa79893e9..fcbdc28bd7 100644 --- a/var/spack/repos/builtin/packages/mvapich/package.py +++ b/var/spack/repos/builtin/packages/mvapich/package.py @@ -3,6 +3,7 @@ # # SPDX-License-Identifier: (Apache-2.0 OR MIT) +import itertools import os.path import re import sys @@ -19,7 +20,7 @@ class Mvapich(AutotoolsPackage): url = "https://mvapich.cse.ohio-state.edu/download/mvapich/mv2/mvapich2-3.0a.tar.gz" list_url = "https://mvapich.cse.ohio-state.edu/downloads/" - maintainers("natshineman", "harisubramoni", "ndcontini") + maintainers("natshineman", "harisubramoni", "MatthewLieber") executables = ["^mpiname$", "^mpichversion$"] @@ -284,6 +285,11 @@ class Mvapich(AutotoolsPackage): else: args.append("--disable-registration-cache") + ld = "" + for path in itertools.chain(self.compiler.extra_rpaths, self.compiler.implicit_rpaths()): + ld += "-Wl,-rpath," + path + " " + if ld != "": + args.append("LDFLAGS=" + ld) args.extend(self.process_manager_options) args.extend(self.network_options) args.extend(self.file_system_options) |