libgcrypt: disable strictflexarrays3 hardening flag

This commit is contained in:
Robert Scott
2025-05-24 11:10:25 +01:00
parent 185f5f70bc
commit 6e7b7ac6ec
+10 -4
View File
@@ -32,10 +32,16 @@ stdenv.mkDerivation rec {
"out"
];
# The CPU Jitter random number generator must not be compiled with
# optimizations and the optimize -O0 pragma only works for gcc.
# The build enables -O2 by default for everything else.
hardeningDisable = lib.optional stdenv.cc.isClang "fortify";
hardeningDisable =
[
"strictflexarrays3"
]
++ lib.optionals stdenv.cc.isClang [
# The CPU Jitter random number generator must not be compiled with
# optimizations and the optimize -O0 pragma only works for gcc.
# The build enables -O2 by default for everything else.
"fortify"
];
depsBuildBuild = [ buildPackages.stdenv.cc ];