libffi_3_3: disable fortify3 hardening flag

This commit is contained in:
Theodore Ni 2023-07-12 21:03:30 -07:00
parent 8f096fa007
commit b704e2a423
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474

View file

@ -29,6 +29,9 @@ stdenv.mkDerivation rec {
"--disable-exec-static-tramp"
];
# with fortify3, tests fail for some reason
hardeningDisable = [ "fortify3" ];
preCheck = ''
# The tests use -O0 which is not compatible with -D_FORTIFY_SOURCE.
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}