diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-02-10 17:59:46 -0600 |
---|---|---|
committer | becker33 <becker33@llnl.gov> | 2017-02-10 15:59:46 -0800 |
commit | 57855cab5d53c75aa7bf983877206b2c2c7ce66a (patch) | |
tree | f3c95f7294284e8c6a34e77d8726e29eb6622f1c | |
parent | 563b6ab73a1d8a2aab685f273003cfde851edfba (diff) | |
download | spack-57855cab5d53c75aa7bf983877206b2c2c7ce66a.tar.gz spack-57855cab5d53c75aa7bf983877206b2c2c7ce66a.tar.bz2 spack-57855cab5d53c75aa7bf983877206b2c2c7ce66a.tar.xz spack-57855cab5d53c75aa7bf983877206b2c2c7ce66a.zip |
Explicitly tell MPC where to find its deps (#3073)
-rw-r--r-- | var/spack/repos/builtin/packages/mpc/package.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mpc/package.py b/var/spack/repos/builtin/packages/mpc/package.py index 39c4f3d8c0..8a807399e8 100644 --- a/var/spack/repos/builtin/packages/mpc/package.py +++ b/var/spack/repos/builtin/packages/mpc/package.py @@ -35,11 +35,18 @@ class Mpc(AutotoolsPackage): version('1.0.3', 'd6a1d5f8ddea3abd2cc3e98f58352d26') version('1.0.2', '68fadff3358fb3e7976c7a398a0af4c3') - depends_on('gmp') # mpir is a drop-in replacement for this - depends_on('mpfr') # Could also be built against mpir + depends_on('gmp@4.3.2:') # mpir is a drop-in replacement for this + depends_on('mpfr@2.4.2:') # Could also be built against mpir def url_for_version(self, version): if version < Version("1.0.1"): return "http://www.multiprecision.org/mpc/download/mpc-%s.tar.gz" % version else: return "https://ftp.gnu.org/gnu/mpc/mpc-%s.tar.gz" % version + + def configure_args(self): + spec = self.spec + return [ + '--with-mpfr={0}'.format(spec['mpfr'].prefix), + '--with-gmp={0}'.format(spec['gmp'].prefix) + ] |