Fix build error with mpiP: (#5006)
change dependency types to default (build/link) and provide mpi compiler as cc (fix #5005)
This commit is contained in:
parent
825c3c68a3
commit
f4dd905447
@ -33,10 +33,14 @@ class Mpip(AutotoolsPackage):
|
||||
|
||||
version("3.4.1", "1168adc83777ac31d6ebd385823aabbd")
|
||||
|
||||
depends_on("libelf", type="build")
|
||||
depends_on("libdwarf", type="build")
|
||||
depends_on('libunwind', when=os.uname()[4] == "x86_64", type="build")
|
||||
depends_on("mpi", type="build")
|
||||
depends_on("libelf")
|
||||
depends_on("libdwarf")
|
||||
depends_on('libunwind', when=os.uname()[4] == "x86_64")
|
||||
depends_on("mpi")
|
||||
|
||||
def configure_args(self):
|
||||
return ['--without-f77']
|
||||
config_args = ['--without-f77']
|
||||
config_args.append("--with-cc=%s" % self.spec['mpi'].mpicc)
|
||||
config_args.append("--with-cxx=%s" % self.spec['mpi'].mpicxx)
|
||||
|
||||
return config_args
|
||||
|
Loading…
Reference in New Issue
Block a user