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>
This commit is contained in:
MatthewLieber 2023-03-03 16:29:59 -05:00 committed by GitHub
parent 046416479a
commit c0f48b30cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 @@ def configure_args(self):
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)