From ebef9628a3c37b3853c1d9a40873c5f0f819d2c9 Mon Sep 17 00:00:00 2001 From: Sergey Kosukhin <skosukhin@gmail.com> Date: Thu, 6 Oct 2016 20:49:03 +0100 Subject: [PATCH] Update gmp: fixed an issue with intel compiler. (#1898) --- var/spack/repos/builtin/packages/gmp/package.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/gmp/package.py b/var/spack/repos/builtin/packages/gmp/package.py index 3ce784c6c1..14ce08473d 100644 --- a/var/spack/repos/builtin/packages/gmp/package.py +++ b/var/spack/repos/builtin/packages/gmp/package.py @@ -40,8 +40,14 @@ class Gmp(Package): depends_on('m4', type='build') def install(self, spec, prefix): - configure('--prefix={0}'.format(prefix), - '--enable-cxx') + config_args = ['--prefix=' + prefix, + '--enable-cxx'] + + # We need this flag if we want all the following checks to pass. + if spec.compiler.name == 'intel': + config_args.append('CXXFLAGS=-no-ftz') + + configure(*config_args) make() make('check') -- GitLab