Fix building shared libraries for gmp (#4464)

If specific compiler flags are set, gmp will not build a shared library,
causing failures further down the line.
This commit is contained in:
Michael Kuhn 2017-06-13 15:06:44 +02:00 committed by Adam J. Stewart
parent d450e4a93b
commit 181fd95057

View File

@ -38,8 +38,15 @@ class Gmp(AutotoolsPackage):
version('6.0.0a', 'b7ff2d88cae7f8085bd5006096eed470')
version('6.0.0', '6ef5869ae735db9995619135bd856b84')
depends_on('autoconf', type='build')
depends_on('automake', type='build')
depends_on('libtool', type='build')
depends_on('m4', type='build')
# gmp's configure script seems to be broken; it sometimes misdetects
# shared library support. Regenerating it fixes the issue.
force_autoreconf = True
def configure_args(self):
args = ['--enable-cxx']
# This flag is necessary for the Intel build to pass `make check`