From 181fd95057018b4e26d3fcbc76dd8d84f56cd3eb Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Tue, 13 Jun 2017 15:06:44 +0200 Subject: 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. --- var/spack/repos/builtin/packages/gmp/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/gmp/package.py b/var/spack/repos/builtin/packages/gmp/package.py index b318273b0b..023ecd6069 100644 --- a/var/spack/repos/builtin/packages/gmp/package.py +++ b/var/spack/repos/builtin/packages/gmp/package.py @@ -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` -- cgit v1.2.3-60-g2f50