From 4e49c5d2e3550e072a34aa2c761cb7beb82e1309 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 22 Jan 2023 21:16:05 +0000 Subject: [PATCH] libffi: disable fortify3 hardening for tests using the same odd mechanism as is used to disable fortify mid-build --- pkgs/development/libraries/libffi/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/libffi/default.nix b/pkgs/development/libraries/libffi/default.nix index 2031f175eab..681f9cbfb22 100644 --- a/pkgs/development/libraries/libffi/default.nix +++ b/pkgs/development/libraries/libffi/default.nix @@ -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/} '';