summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2017-10-03 13:40:14 -0700
committerChristoph Junghans <christoph.junghans@gmail.com>2017-10-03 14:40:14 -0600
commit5bc81c8db272b08cdff4655313fcdbcb828754e7 (patch)
treeff1ec6c90df6f4f6c7ab0a40f3f4ebb24d5d2e12 /var
parentd22ee8f9930daa9b9d9362eccc9758fe2b5f36ae (diff)
downloadspack-5bc81c8db272b08cdff4655313fcdbcb828754e7.tar.gz
spack-5bc81c8db272b08cdff4655313fcdbcb828754e7.tar.bz2
spack-5bc81c8db272b08cdff4655313fcdbcb828754e7.tar.xz
spack-5bc81c8db272b08cdff4655313fcdbcb828754e7.zip
Tell configure about gmp (#5585)
This is a partial fix for #5564. This package used to trust that `configure` would discover `gmp` from its environment. It's safer to tell it where to find `gmp` explicitly. This does that by adding a configure_args() that provides a `--with-gmp=...` argument for configure.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpfr/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpfr/package.py b/var/spack/repos/builtin/packages/mpfr/package.py
index 3e531ef246..4bc91e05f1 100644
--- a/var/spack/repos/builtin/packages/mpfr/package.py
+++ b/var/spack/repos/builtin/packages/mpfr/package.py
@@ -42,3 +42,9 @@ class Mpfr(AutotoolsPackage):
patch('vasprintf.patch', when='@3.1.5')
patch('strtofr.patch', when='@3.1.5')
+
+ def configure_args(self):
+ args = [
+ '--with-gmp=' + self.spec['gmp'].prefix,
+ ]
+ return args