Update gmp: fixed an issue with intel compiler. (#1898)

This commit is contained in:
Sergey Kosukhin 2016-10-06 20:49:03 +01:00 committed by Todd Gamblin
parent 6e9353f1a8
commit ebef9628a3

View File

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