From c0f48b30cf0cedb542f7b209a119bdfafb9a31d3 Mon Sep 17 00:00:00 2001 From: MatthewLieber <77356607+MatthewLieber@users.noreply.github.com> Date: Fri, 3 Mar 2023 16:29:59 -0500 Subject: 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 --- var/spack/repos/builtin/packages/mvapich/package.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2