libffi: disable fortify3 hardening for tests

using the same odd mechanism as is used to disable fortify
mid-build
This commit is contained in:
Robert Scott 2023-01-22 21:16:05 +00:00
parent 636029883a
commit 4e49c5d2e3

View file

@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
preCheck = ''
# The tests use -O0 which is not compatible with -D_FORTIFY_SOURCE.
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify3/}
NIX_HARDENING_ENABLE=''${NIX_HARDENING_ENABLE/fortify/}
'';