summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosukhin <skosukhin@gmail.com>2016-10-06 20:49:03 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-06 12:49:03 -0700
commitebef9628a3c37b3853c1d9a40873c5f0f819d2c9 (patch)
treeb604283cf41d69f4a3e3a306a69a673746e70e90
parent6e9353f1a830dace6b34c1cb52441a8d212e5951 (diff)
downloadspack-ebef9628a3c37b3853c1d9a40873c5f0f819d2c9.tar.gz
spack-ebef9628a3c37b3853c1d9a40873c5f0f819d2c9.tar.bz2
spack-ebef9628a3c37b3853c1d9a40873c5f0f819d2c9.tar.xz
spack-ebef9628a3c37b3853c1d9a40873c5f0f819d2c9.zip
Update gmp: fixed an issue with intel compiler. (#1898)
-rw-r--r--var/spack/repos/builtin/packages/gmp/package.py10
1 files 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')