summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin S <3630356+codeandkey@users.noreply.github.com>2019-06-05 19:09:01 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-06-05 19:09:01 -0500
commit8c173da4b76c90765f01692285ea699ccd23c197 (patch)
tree045fc6b529241b0e4f9f1a87aa34f4ffe3196015
parent8fd64dfa08919c097399a9df8ad1c55bf4fcb450 (diff)
downloadspack-8c173da4b76c90765f01692285ea699ccd23c197.tar.gz
spack-8c173da4b76c90765f01692285ea699ccd23c197.tar.bz2
spack-8c173da4b76c90765f01692285ea699ccd23c197.tar.xz
spack-8c173da4b76c90765f01692285ea699ccd23c197.zip
nettle: fix broken build (#11611)
* nettle: force C99 build * nettle: update to use c99_flag from @alalazo Co-Authored-By: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/nettle/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nettle/package.py b/var/spack/repos/builtin/packages/nettle/package.py
index 841de42b2f..32f7c424e6 100644
--- a/var/spack/repos/builtin/packages/nettle/package.py
+++ b/var/spack/repos/builtin/packages/nettle/package.py
@@ -22,3 +22,6 @@ class Nettle(AutotoolsPackage):
depends_on('gmp')
depends_on('m4', type='build')
+
+ def configure_args(self):
+ return ['CFLAGS={0}'.format(self.compiler.c99_flag)]