From f4dd90544794799f07db4955e17b11e27ef36a9f Mon Sep 17 00:00:00 2001 From: Pramod S Kumbhar Date: Mon, 7 Aug 2017 23:38:53 +0200 Subject: Fix build error with mpiP: (#5006) change dependency types to default (build/link) and provide mpi compiler as cc (fix #5005) --- var/spack/repos/builtin/packages/mpip/package.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/var/spack/repos/builtin/packages/mpip/package.py b/var/spack/repos/builtin/packages/mpip/package.py index f75df37278..4bc4b01ef0 100644 --- a/var/spack/repos/builtin/packages/mpip/package.py +++ b/var/spack/repos/builtin/packages/mpip/package.py @@ -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 -- cgit v1.2.3-70-g09d2