Merge #324515: wolfssl: Disable zerocallusedregs hardening on aarch64-darwin

...into staging-next
This commit is contained in:
Vladimír Čunát
2024-07-04 15:41:31 +02:00
@@ -60,6 +60,9 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-armasm=inline"
] ++ extraConfigureFlags;
# Breaks tls13 tests on aarch64-darwin.
hardeningDisable = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "zerocallusedregs" ];
# LTO should help with the C implementations.
env.NIX_CFLAGS_COMPILE = lib.optionalString enableLto "-flto";
env.NIX_LDFLAGS_COMPILE = lib.optionalString enableLto "-flto";