summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libgcrypt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/libgcrypt/package.py')
-rw-r--r--var/spack/repos/builtin/packages/libgcrypt/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libgcrypt/package.py b/var/spack/repos/builtin/packages/libgcrypt/package.py
index 00a2bf62d5..a1aeafb305 100644
--- a/var/spack/repos/builtin/packages/libgcrypt/package.py
+++ b/var/spack/repos/builtin/packages/libgcrypt/package.py
@@ -31,6 +31,12 @@ class Libgcrypt(AutotoolsPackage):
depends_on("libgpg-error@1.25:")
+ def flag_handler(self, name, flags):
+ # We should not inject optimization flags through the wrapper, because
+ # the jitter entropy code should never be compiled with optimization
+ # flags, and the build system ensures that
+ return (None, flags, None)
+
def check(self):
# Without this hack, `make check` fails on macOS when SIP is enabled
# https://bugs.gnupg.org/gnupg/issue2056