diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2023-01-24 18:47:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 09:47:33 -0800 |
commit | 16dbbb9b26f9c466742f992f144f3b15c941022a (patch) | |
tree | 44635ce4c29e892a4ba333d88d46c03dc6ad906a | |
parent | 3695200a3cba4a066e63d8318755b88106e11499 (diff) | |
download | spack-16dbbb9b26f9c466742f992f144f3b15c941022a.tar.gz spack-16dbbb9b26f9c466742f992f144f3b15c941022a.tar.bz2 spack-16dbbb9b26f9c466742f992f144f3b15c941022a.tar.xz spack-16dbbb9b26f9c466742f992f144f3b15c941022a.zip |
libgcrypt: make sure flags go through env (#35135)
Parts of libgcrypt should not be optimized with -O1/2/3, so it's best to
let the build system do that; the build system cannot know the compiler
wrapper would inject optimization flags
-rw-r--r-- | var/spack/repos/builtin/packages/libgcrypt/package.py | 6 |
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 |