libffi: disable fortify3 hardening for tests
using the same odd mechanism as is used to disable fortify mid-build
This commit is contained in:
parent
636029883a
commit
4e49c5d2e3
|
@ -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/}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue