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.
This commit is contained in:
George Hartzell 2017-10-03 13:40:14 -07:00 committed by Christoph Junghans
parent d22ee8f993
commit 5bc81c8db2

View file

@ -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