From 5bc81c8db272b08cdff4655313fcdbcb828754e7 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Tue, 3 Oct 2017 13:40:14 -0700 Subject: 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. --- var/spack/repos/builtin/packages/mpfr/package.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-70-g09d2