wolfssl: Disable zerocallusedregs hardening on aarch64-darwin.

This commit is contained in:
Adrian Pistol 2024-07-04 11:14:01 +02:00
parent 1a386e193d
commit c23798270a

View File

@ -60,6 +60,9 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-armasm=inline" "--enable-armasm=inline"
] ++ extraConfigureFlags; ] ++ extraConfigureFlags;
# Breaks tls13 tests on aarch64-darwin.
hardeningDisable = lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [ "zerocallusedregs" ];
# LTO should help with the C implementations. # LTO should help with the C implementations.
env.NIX_CFLAGS_COMPILE = lib.optionalString enableLto "-flto"; env.NIX_CFLAGS_COMPILE = lib.optionalString enableLto "-flto";
env.NIX_LDFLAGS_COMPILE = lib.optionalString enableLto "-flto"; env.NIX_LDFLAGS_COMPILE = lib.optionalString enableLto "-flto";